From 431e889186131c40e737a61d87a9d1426b22aee2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Thu, 26 Jan 2017 17:29:34 +0100 Subject: beacon: Fix confusing indentation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ax25/beacon.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ax25') 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)) { -- cgit v1.2.3