From e9ed9bdfc56fbf538965577dac3baab638386415 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Sun, 13 Jul 2014 01:40:55 -0400 Subject: [PATCH] ecere/gui/Anchor: Fixed stringification on empty anchor --- ecere/src/gui/Anchor.ec | 1 + 1 file changed, 1 insertion(+) diff --git a/ecere/src/gui/Anchor.ec b/ecere/src/gui/Anchor.ec index 4d94847..a226752 100644 --- a/ecere/src/gui/Anchor.ec +++ b/ecere/src/gui/Anchor.ec @@ -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); } -- 1.8.3.1