Silence unitialized variable warning
authorJosé Fonseca <jfonseca@vmware.com>
Tue, 14 Dec 2010 14:13:53 +0000 (14:13 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 14 Dec 2010 14:13:53 +0000 (14:13 +0000)
glretrace.py

index 9d6b1fd..3c4a956 100644 (file)
@@ -235,7 +235,7 @@ static void frame_complete(void) {
 
         snprintf(filename, sizeof filename, "%s%04u.png", __snapshot_prefix, __frame);
         
-        Image::Image *ref;
+        Image::Image *ref = NULL;
         if (__mode == MODE_COMPARE) {
             ref = Image::readPNG(filename);
             if (!ref) {