aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/string.cpp b/engines/agos/string.cpp
index 44b7e515e2..65dc578336 100644
--- a/engines/agos/string.cpp
+++ b/engines/agos/string.cpp
@@ -615,7 +615,7 @@ uint16 AGOSEngine::getBoxSize() {
uint16 AGOSEngine::checkFit(char *Ptr, int width, int lines) {
int countw = 0;
int countl = 0;
- char *x;
+ char *x = NULL;
while (*Ptr) {
if (*Ptr == '\n')
return 1;