Date: Fri, 24 Aug 2012 10:18:51 +0000 (UTC) From: Baptiste Daroussin <bapt@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r303067 - head/biology/babel/files Message-ID: <201208241018.q7OAIpKg018610@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bapt Date: Fri Aug 24 10:18:51 2012 New Revision: 303067 URL: http://svn.freebsd.org/changeset/ports/303067 Log: Fix build with clang Added: head/biology/babel/files/patch-strngutl.c (contents, props changed) Added: head/biology/babel/files/patch-strngutl.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/biology/babel/files/patch-strngutl.c Fri Aug 24 10:18:51 2012 (r303067) @@ -0,0 +1,13 @@ +--- ./strngutl.c.orig 1997-01-21 16:52:52.000000000 +0100 ++++ ./strngutl.c 2012-08-24 12:16:14.765914164 +0200 +@@ -182,8 +182,8 @@ + int ilen; + char *ptr; + +- if (!str) return; +- if ((ilen = strlen(str)) == 0) return; ++ if (!str) return(NULL); ++ if ((ilen = strlen(str)) == 0) return(NULL); + + ptr = (char *) malloc ( (ilen+1) * sizeof(char) ); + strcpy ( ptr, str );
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208241018.q7OAIpKg018610>