diff options
author | bapt <bapt@FreeBSD.org> | 2012-08-24 18:18:51 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2012-08-24 18:18:51 +0800 |
commit | 4dad1f8e9e971259230313bd609d9affaa82fb0d (patch) | |
tree | c2edde5835b4b92850af6cf96880cf4233a14d1f /biology/babel | |
parent | 6e10810bde5b8d2a0bc40d514fa0acab65b1b78f (diff) | |
download | freebsd-ports-gnome-4dad1f8e9e971259230313bd609d9affaa82fb0d.tar.gz freebsd-ports-gnome-4dad1f8e9e971259230313bd609d9affaa82fb0d.tar.zst freebsd-ports-gnome-4dad1f8e9e971259230313bd609d9affaa82fb0d.zip |
Fix build with clang
Diffstat (limited to 'biology/babel')
-rw-r--r-- | biology/babel/files/patch-strngutl.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/biology/babel/files/patch-strngutl.c b/biology/babel/files/patch-strngutl.c new file mode 100644 index 000000000000..12ddd18e920f --- /dev/null +++ b/biology/babel/files/patch-strngutl.c @@ -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 ); |