svn commit: r303067 - head/biology/babel/files

Baptiste Daroussin bapt at FreeBSD.org
Fri Aug 24 10:18:51 UTC 2012


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 );



More information about the svn-ports-head mailing list