Преглед изворни кода

* A missing check if (timer) still exists

svn: 1415
Bryan Drewery пре 21 година
родитељ
комит
edb5bee90f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/egg_timer.c

+ 1 - 1
src/egg_timer.c

@@ -220,7 +220,7 @@ int timer_run()
 			free(timer);
 		}
 
-		timer->called++;
+		if (timer) timer->called++;
 		callback(client_data);
 	}
 	return(0);