Re-enable a hack in main.c to fix a "clobbered" pointer; this is

NOT a fix.  Work continues...
This commit is contained in:
ddouthitt
2001-10-06 00:32:02 +00:00
parent a070f75d4b
commit 10a79e3859
+10 -4
View File
@@ -633,12 +633,18 @@ main (int argc, char **argv)
timer++;
// this line's here because s was getting overwritten at one time...
//s = screenlist_current();
// this is here because s is getting overwritten...
//if (s != screenlist_current()) {
// syslog(LOG_DEBUG, "internal error! s was found overwritten at main.c:637");
s = screenlist_current();
//}
//
//TODO: THIS MUST BE FIXED..... WHY is s getting overwritten?
// s is a local, it is never passed or assigned to anywhere.
// So SOMETHING is going haywire and clobbering memory....
if (s && (timer >= s->duration)) {
if (s && (timer >= s->duration))
screenlist_next ();
}
// Just in case it gets out of hand...
if (timer >= MAX_TIMER)