X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=blobdiff_plain;f=lib%2Futils.c;fp=lib%2Futils.c;h=2b251e31e8518c33e2e33e45320802e85a027c57;hp=2ecae5a6c0a1056135d029a4b54935736feaf902;hb=06c1a7183754349e29a6f4656d88d3f89e4f448a;hpb=da6187f505ee82e8e65d6b82230b2e018b22768e diff --git a/lib/utils.c b/lib/utils.c index 2ecae5a..2b251e3 100644 --- a/lib/utils.c +++ b/lib/utils.c @@ -163,6 +163,8 @@ void freeca(char **ca) { char **c; + if(ca == NULL) + return; for(c = ca; *c; c++) free(*c); free(ca);