diff options
author | Michael Jennings <mej@kainx.org> | 2010-08-23 17:55:09 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2010-08-23 17:55:09 +0000 |
commit | 8b96666c7c7dd4fc1b52fdb4b55bbc15ca0c071c (patch) | |
tree | c99e7812575034fd8d3e4c09dddc077437980b34 /src/ustr.c | |
parent | e14093a9f933fef1826d4036bf9991387020405d (diff) | |
download | libast-8b96666c7c7dd4fc1b52fdb4b55bbc15ca0c071c.tar.gz |
Revert coccinelle changes.
Using !! instead of != NULL results in significantly and unacceptably
less readable code, and I refuse to accept those changes.
Unfortunately, since they were all done at once, I have to revert the
whole thing. Oh well. :(
SVN revision: 51583
Diffstat (limited to 'src/ustr.c')
-rw-r--r-- | src/ustr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -230,7 +230,8 @@ 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'))) { + if ((end = (spif_charptr_t) + strchr((const char *)p, '\n')) == NULL) { self->size += buff_inc; self->s = (spif_charptr_t) REALLOC(self->s, self->size); } else { |