ecere/gui/Anchor: Fixed stringification on empty anchor
authorJerome St-Louis <jerome@ecere.com>
Sun, 13 Jul 2014 05:40:55 +0000 (01:40 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sun, 13 Jul 2014 05:40:55 +0000 (01:40 -0400)
ecere/src/gui/Anchor.ec

index 4d94847..a226752 100644 (file)
@@ -182,6 +182,7 @@ public struct Anchor
       const char * anchorValue;
       bool subNeedClass;
 
+      stringOutput[0] = 0;
       tempString[0] = '\0';
       anchorValue = left.OnGetString(tempString, null, &subNeedClass);
       if(anchorValue[0]) { if(stringOutput[0]) strcat(stringOutput, ", "); strcat(stringOutput, "left = "); strcat(stringOutput, anchorValue); }