summaryrefslogtreecommitdiffstats
path: root/textproc/opensched/files/patch-src__loadfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/opensched/files/patch-src__loadfile.c')
-rw-r--r--textproc/opensched/files/patch-src__loadfile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/textproc/opensched/files/patch-src__loadfile.c b/textproc/opensched/files/patch-src__loadfile.c
new file mode 100644
index 0000000..da635f2
--- /dev/null
+++ b/textproc/opensched/files/patch-src__loadfile.c
@@ -0,0 +1,10 @@
+--- src/loadfile.c.orig Sat Oct 19 15:29:13 2002
++++ src/loadfile.c Sat Oct 19 15:28:40 2002
+@@ -268,6 +268,7 @@
+ t = (TASK*)malloc(sizeof(TASK));
+ if ( t == NULL )
+ Error("Can't malloc task in AddTask()");
++ memset(t, 0, sizeof(TASK));
+
+ t->id = strdup(id);
+ t->name = strdup(name);
OpenPOWER on IntegriCloud