summaryrefslogtreecommitdiffstats
path: root/ax25/axwrapper.c
diff options
context:
space:
mode:
Diffstat (limited to 'ax25/axwrapper.c')
-rw-r--r--ax25/axwrapper.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ax25/axwrapper.c b/ax25/axwrapper.c
index 8f2390b..f58ec8d 100644
--- a/ax25/axwrapper.c
+++ b/ax25/axwrapper.c
@@ -92,7 +92,8 @@ int main(int argc, char **argv)
exit(1);
}
- if ((stdoutbuf = malloc(paclen)) == NULL) {
+ stdoutbuf = malloc(paclen);
+ if (stdoutbuf == NULL) {
PERROR("axwrapper: malloc");
exit(1);
}