]> git.tdb.fi Git - r2c2.git/commitdiff
Add a missing initializer
authorMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:14:06 +0000 (21:14 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 30 Mar 2014 18:14:06 +0000 (21:14 +0300)
source/designer/designer.cpp

index 1cad9eb251cc686743bc1383c92a1489b54352ac..ac870a469f4e01d72f7efedfc34782cf5d666134 100644 (file)
@@ -481,7 +481,7 @@ void Designer::button_press(unsigned btn)
 
        if(mode==CATALOGUE)
        {
-               Object *obj;
+               Object *obj = 0;
                if(btn==1)
                        obj = pick_object(pointer);