summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nasmlib.c b/nasmlib.c
index 86ed6c47..27179eba 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -627,7 +627,7 @@ void saa_fpwrite (struct SAA *s, FILE *fp)
long len;
saa_rewind (s);
- while ( (data = saa_rbytes (s, &len)) )
+ while ( (data = saa_rbytes (s, &len)) != NULL )
fwrite (data, 1, len, fp);
}