summaryrefslogtreecommitdiffstats
path: root/ax25
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-26 17:29:34 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-01-26 21:58:46 +0100
commit431e889186131c40e737a61d87a9d1426b22aee2 (patch)
tree8c8d3d5879abf6860b92e1b5f8f739b2b6de5b8f /ax25
parent29308985d60207eb4c3363dc918f823f814dda08 (diff)
beacon: Fix confusing indentation.
beacon.c: In function ‘main’: beacon.c:146:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (addr != NULL) free(addr); addr = NULL; ^~ beacon.c:146:32: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ if (addr != NULL) free(addr); addr = NULL; ^~~~ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'ax25')
-rw-r--r--ax25/beacon.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ax25/beacon.c b/ax25/beacon.c
index 7adda99..b212ac8 100644
--- a/ax25/beacon.c
+++ b/ax25/beacon.c
@@ -143,7 +143,10 @@ int main(int argc, char *argv[])
fprintf(stderr, "beacon: unable to convert callsign '%s'\n", addr);
return 1;
}
- if (addr != NULL) free(addr); addr = NULL;
+ if (addr != NULL) {
+ free(addr);
+ addr = NULL;
+ }
if (!single && dofork) {
if (!daemon_start(FALSE)) {