In tcl_ovsec_kadm_get_policy, initialize ent since (at least in
authorGreg Hudson <ghudson@mit.edu>
Wed, 4 Feb 2009 19:31:33 +0000 (19:31 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 4 Feb 2009 19:31:33 +0000 (19:31 +0000)
theory) there's a code path which gets through to the finalizers
without setting it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21882 dc483132-0cff-0310-8789-dd5450dbe970

src/kadmin/testing/util/tcl_ovsec_kadm.c

index db0b4cc58a733652d11787bfe7f5be51bb3060e8..936e028f505dfee5999517b386d9b0c733db4df2 100644 (file)
@@ -1742,7 +1742,7 @@ static int tcl_ovsec_kadm_get_policy(ClientData clientData,
                                     Tcl_Interp *interp,
                                     int argc, const char *argv[])
 {
-     ovsec_kadm_policy_ent_t ent;
+     ovsec_kadm_policy_ent_t ent = NULL;
      Tcl_DString *ent_dstring = 0;
      char *policy;
      char *ent_var;