summaryrefslogtreecommitdiffstats
path: root/ax25/axgetput/proto_bin.c
diff options
context:
space:
mode:
Diffstat (limited to 'ax25/axgetput/proto_bin.c')
-rw-r--r--ax25/axgetput/proto_bin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ax25/axgetput/proto_bin.c b/ax25/axgetput/proto_bin.c
index 69d12a4..7d5eb3a 100644
--- a/ax25/axgetput/proto_bin.c
+++ b/ax25/axgetput/proto_bin.c
@@ -484,7 +484,8 @@ int bget(void) {
}
if (fdin_is_pipe && !is_stream) {
sl = stored_file;
- if (!(stored_file = stored_file->next))
+ stored_file = stored_file->next;
+ if (!stored_file)
is_eof = 1;
free(sl);
}