summaryrefslogtreecommitdiff
path: root/system/pdksh/patches/107_Debian-gcc-warnings2.patch
diff options
context:
space:
mode:
authorDaniel LEVAI <leva@ecentrum.hu>2010-05-13 01:01:03 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-13 01:01:03 +0200
commit6ec76a9860188c0e2de54daf61f5a4ff590ad8ef (patch)
treeedd70b526118253bc6ab17c0dcd069325fa5016f /system/pdksh/patches/107_Debian-gcc-warnings2.patch
parent387f1e8f9c14fc5648eee03d43787806c806fe20 (diff)
downloadslackbuilds-6ec76a9860188c0e2de54daf61f5a4ff590ad8ef.tar.gz
system/pdksh: Added to 13.0 repository
Diffstat (limited to 'system/pdksh/patches/107_Debian-gcc-warnings2.patch')
-rw-r--r--system/pdksh/patches/107_Debian-gcc-warnings2.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/system/pdksh/patches/107_Debian-gcc-warnings2.patch b/system/pdksh/patches/107_Debian-gcc-warnings2.patch
new file mode 100644
index 0000000000..ea46ecb162
--- /dev/null
+++ b/system/pdksh/patches/107_Debian-gcc-warnings2.patch
@@ -0,0 +1,23 @@
+Fix gcc warnings.
+Index: pdksh-5.2.14/eval.c
+===================================================================
+--- pdksh-5.2.14.orig/eval.c 2008-04-15 21:11:04.000000000 +0200
++++ pdksh-5.2.14/eval.c 2008-04-15 21:15:24.000000000 +0200
+@@ -201,6 +201,8 @@
+ word = (f&DOBLANK) ? IFS_WS : IFS_WORD;
+ st_head.next = (SubType *) 0;
+ st = &st_head;
++ x.split = 0;
++ x.str = NULL;
+
+ while (1) {
+ Xcheck(ds, dp);
+@@ -280,7 +282,7 @@
+ {
+ char *varname = ++sp; /* skip the { or x (}) */
+ int stype;
+- int slen;
++ int slen = 0;
+
+ sp = strchr(sp, '\0') + 1; /* skip variable */
+ type = varsub(&x, varname, sp, &stype, &slen);