Initialize variables in case of error path winds up freeing stack garbage
authorEzra Peisach <epeisach@mit.edu>
Sun, 3 Jan 2010 14:27:02 +0000 (14:27 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 3 Jan 2010 14:27:02 +0000 (14:27 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23571 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/util/tcl_kadm5.c

index 2f2c07946c3b3f0731bb9b892e43cc0dd75663f2..3a679996edd59e531e86d7b5708a06516d267a14 100644 (file)
@@ -849,7 +849,7 @@ static int parse_key_data(Tcl_Interp *interp, const char *list,
                           krb5_key_data **key_data,
                           int n_key_data)
 {
-    const char **argv;
+    const char **argv = NULL;
     int argc, retcode;
 
     *key_data = NULL;
@@ -889,7 +889,7 @@ static int parse_tl_data(Tcl_Interp *interp, const char *list,
                          int n_tl_data)
 {
     krb5_tl_data *tl, *tl2;
-    const char **argv, **argv1 = NULL;
+    const char **argv = NULL, **argv1 = NULL;
     int i, tmp, argc, argc1, retcode;
 
     *tlp = NULL;