aklog-uninitialized-variable-20040708
authorJeffrey Altman <jaltman@mit.edu>
Thu, 8 Jul 2004 14:25:40 +0000 (14:25 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 8 Jul 2004 14:25:40 +0000 (14:25 +0000)
make sure that the krb5_context is initialized to 0.  Otherwise, we
might try to free it.

src/WINNT/aklog/aklog.c

index 00a5cdb..f3a6fb4 100644 (file)
@@ -990,7 +990,7 @@ int main(int argc, char *argv[])
        linked_list paths;              /* List of paths to log to */
        ll_node *cur_node;
 
-       krb5_context context;
+       krb5_context context = 0;
 
        memset(&cellinfo, 0, sizeof(cellinfo));