summaryrefslogtreecommitdiff
path: root/src/ustr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ustr.c')
-rw-r--r--src/ustr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ustr.c b/src/ustr.c
index 35c80ab..4fb8e91 100644
--- a/src/ustr.c
+++ b/src/ustr.c
@@ -230,8 +230,7 @@ spif_ustr_init_from_fp(spif_ustr_t self, FILE *fp)
self->s = (spif_charptr_t) MALLOC(self->size);
for (p = self->s; fgets((char *)p, buff_inc, fp); p += buff_inc) {
- if ((end = (spif_charptr_t)
- strchr((const char *)p, '\n')) == NULL) {
+ if (!(end = (spif_charptr_t)strchr((const char *)p, '\n'))) {
self->size += buff_inc;
self->s = (spif_charptr_t) REALLOC(self->s, self->size);
} else {