Hi
GCC warns that a variable might be uninitialized. See
attached patch.
--
Greetings
Elias
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/json.c b/src/json.c
index 72b065f..f97d283 100644
--- a/src/json.c
+++ b/src/json.c
@@ -339,7 +339,7 @@ json_decode_object(js_read_T *reader, typval_T *res)
typval_T item;
dictitem_T *di;
char_u buf[NUMBUFLEN];
- char_u *key;
+ char_u *key = NULL;
int ret;
if (res != NULL && rettv_dict_alloc(res) == FAIL)