s4:heimdal fix a compile warning
authorChristian Ambach <ambi@samba.org>
Sat, 6 Feb 2016 09:49:53 +0000 (10:49 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 12 Feb 2016 08:01:14 +0000 (09:01 +0100)
about a potentially uninitialized variable

Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/heimdal/lib/krb5/fcache.c

index cb720c0455ff473bbdecc24bc081bde9395dc6b7..4cc4880b0063603bfc0bafc04ff9e6e78d8472b5 100644 (file)
@@ -690,8 +690,8 @@ fcc_get_principal(krb5_context context,
                  krb5_principal *principal)
 {
     krb5_error_code ret;
-    int fd;
-    krb5_storage *sp;
+    int fd = 0;
+    krb5_storage *sp = NULL;
 
     ret = init_fcc (context, id, &sp, &fd, NULL);
     if (ret)