From 54160445284875eee9ed85d513791b193a076d0b Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 2 Apr 2008 22:20:24 +0000 Subject: 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 --- src/issuemem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/issuemem.c') 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; -- cgit v1.2.3