Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /runtime/script.cpp [597bab] .. [b27cb5] Maximize Restore

  Switch to side-by-side view

--- a/runtime/script.cpp
+++ b/runtime/script.cpp
@@ -497,13 +497,15 @@
     }
     else {
         scr = (header *)img->alloc(sizeof(header));
-        memset(scr, 0, sizeof(header));
         scr->name = img->dup(name);
         scr->file = img->dup(img->filename);
         scr->events = NULL;
         scr->first = NULL;
         scr->resmask = 0;
         scr->scoped = NULL;
+        scr->methods = NULL;
+        scr->link(NULL);
+
         ep = (char *)strrchr(scr->file, '.');
         if(ep)
             *ep = 0;
@@ -616,7 +618,7 @@
                 prior = current;
 
             last = NULL;
-            memset(current, 0, sizeof(event));
+
             if(*token == '^')
                 current->enlist(&scr->events);
             else