diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-26 17:29:34 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-26 21:58:46 +0100 |
commit | 431e889186131c40e737a61d87a9d1426b22aee2 (patch) | |
tree | 8c8d3d5879abf6860b92e1b5f8f739b2b6de5b8f /ax25/beacon.c | |
parent | 29308985d60207eb4c3363dc918f823f814dda08 (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/beacon.c')
-rw-r--r-- | ax25/beacon.c | 5 |
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)) { |