diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2017-01-26 17:27:04 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-01-26 21:58:45 +0100 |
commit | 29308985d60207eb4c3363dc918f823f814dda08 (patch) | |
tree | 96eeec69f9bdedbd0abd81b9d33ab5473feffa29 | |
parent | 5ceff9e8d0c01defdada05d0a289fc94380669ac (diff) |
beacon: Fix confusing indentation.
beacon.c: In function ‘main’:
beacon.c:128:2: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (addr != NULL) free(addr); addr = NULL;
^~
beacon.c:128: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>
-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 f8f8d68..7adda99 100644 --- a/ax25/beacon.c +++ b/ax25/beacon.c @@ -125,7 +125,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 (srccall != NULL && strcmp(srccall, portcall) != 0) { if ((addr = (char *) malloc(strlen(srccall) + 1 + strlen(portcall) + 1)) == NULL) |