]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
No more uninitialized
authorDale Weiler <killfieldengine@gmail.com>
Sun, 6 Jan 2013 03:33:21 +0000 (03:33 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Sun, 6 Jan 2013 03:33:21 +0000 (03:33 +0000)
correct.c

index d9ad757cc5b3e9c72647eaa3532033814021815b..3926441a89c17c57e6393adf14a28a92bb38006d 100644 (file)
--- a/correct.c
+++ b/correct.c
@@ -467,13 +467,12 @@ static char *correct_maximum(correct_trie_t* table, char **array, size_t rows) {
  * add to the dictonary.  
  */
 char *correct_str(correct_trie_t* table, const char *ident) {
-    char **e1;
-    char **e2;
-    char  *e1ident;
-    char  *e2ident;
-
-    size_t e1rows = 0;
-    size_t e2rows = 0;
+    char **e1      = NULL;
+    char **e2      = NULL;
+    char  *e1ident = NULL;
+    char  *e2ident = NULL;
+    size_t e1rows  = 0;
+    size_t e2rows  = 0;
 
     correct_pool_new();