X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=string.c;h=ba32e8bfbddc9b314cfcf78011b4f85bc6322906;hb=4e7459e8e12c9688805ec7c628ca8e9bb19a56e5;hp=c73ec1e6d70377b24bafcb9462035067099fc945;hpb=2ca70d00ec9b4486bca372873041c9e0233d36c4;p=paraslash.git diff --git a/string.c b/string.c index c73ec1e6..ba32e8bf 100644 --- a/string.c +++ b/string.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2004-2008 Andre Noll + * Copyright (C) 2004-2009 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -59,9 +59,10 @@ __must_check __malloc void *para_realloc(void *p, size_t size) */ __must_check __malloc void *para_malloc(size_t size) { - assert(size); - void *p = malloc(size); + void *p; + assert(size); + p = malloc(size); if (!p) { PARA_EMERG_LOG("malloc failed (size = %zu), aborting\n", size);