summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat/ifcmds.c
diff options
context:
space:
mode:
authormelifaro <melifaro@FreeBSD.org>2013-02-20 14:19:09 +0000
committermelifaro <melifaro@FreeBSD.org>2013-02-20 14:19:09 +0000
commitc00d15a4dde2c54b90438648342d1c185b81b1c3 (patch)
tree27efac7ce049d49155fb99f4ab88ada12678904b /usr.bin/systat/ifcmds.c
parentb2d5be799f731eeab9d93a1b28efaa3077bd5928 (diff)
downloadFreeBSD-src-c00d15a4dde2c54b90438648342d1c185b81b1c3.zip
FreeBSD-src-c00d15a4dde2c54b90438648342d1c185b81b1c3.tar.gz
Fix several new & old style issues.
Pointed by: ae, pluknet, zont MFC with: r247036
Diffstat (limited to 'usr.bin/systat/ifcmds.c')
-rw-r--r--usr.bin/systat/ifcmds.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/systat/ifcmds.c b/usr.bin/systat/ifcmds.c
index 6e6f1d2..101c939 100644
--- a/usr.bin/systat/ifcmds.c
+++ b/usr.bin/systat/ifcmds.c
@@ -59,16 +59,14 @@ ifcmd(const char *cmd, const char *args)
} else if (prefix(cmd, "match")) {
if (args != NULL && *args != '\0' && memcmp(args, "*", 2) != 0) {
/* We got a valid match line */
- if (matchline != NULL) {
+ if (matchline != NULL)
free(matchline);
- }
needsort = 1;
matchline = strdup(args);
} else {
/* Empty or * pattern, turn filtering off */
- if (matchline != NULL) {
+ if (matchline != NULL)
free(matchline);
- }
needsort = 1;
matchline = NULL;
}
OpenPOWER on IntegriCloud