diff options
author | Nick White <arch@njw.me.uk> | 2008-04-02 22:20:24 +0000 |
---|---|---|
committer | Nick White <arch@njw.me.uk> | 2008-04-02 22:20:24 +0000 |
commit | 54160445284875eee9ed85d513791b193a076d0b (patch) | |
tree | df991e30a202c4cc3393e98977a9c34a6a09ce48 /src/issuemem.c | |
parent | 8e189aaac36056e58b08573c6c57f8dabf1ef905 (diff) |
Fix for media xml crash bugs
Formatting
Check for empty item titles
Created function to check if any part of a string contains a phrase
Added some basic error checking to getquote
Note this does not completely fix all problems
git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--patch-31
Diffstat (limited to 'src/issuemem.c')
-rw-r--r-- | src/issuemem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/issuemem.c b/src/issuemem.c index 3a40d7e..63fe5b4 100644 --- a/src/issuemem.c +++ b/src/issuemem.c @@ -125,7 +125,7 @@ med ** assignnew_med(med ** media, int * no_of_media) (*no_of_media)++; /* make new array item a pointer to issue */ - if( (tmp[*no_of_media] = malloc(sizeof(med))) == NULL ) + if( ( tmp[*no_of_media] = malloc(sizeof(med)) ) == NULL ) nogo_mem(); return tmp; |