Do not compare an int to NULL. Under Linux, warning about a pointer to int
authorEzra Peisach <epeisach@mit.edu>
Tue, 17 Dec 1996 22:10:10 +0000 (22:10 +0000)
committerEzra Peisach <epeisach@mit.edu>
Tue, 17 Dec 1996 22:10:10 +0000 (22:10 +0000)
comparision.

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

src/kadmin/cli/ChangeLog
src/kadmin/cli/kadmin.c

index 3f8f2ec48ebead5979203aa9969cc7ffc993a8ac..db4103987350e5e9bf36a1ead93512bbc3cf7f8d 100644 (file)
@@ -1,3 +1,7 @@
+Tue Dec 17 17:08:04 1996  Ezra Peisach  <epeisach@mit.edu>
+
+       * kadmin.c (kadmin_startup): Do not compare an int to NULL.
+
 Tue Dec  3 15:39:11 1996  Barry Jaspan  <bjaspan@mit.edu>
 
        * kadmin.c (kadmin_addprinc): print warning/notice about no policy
index b881681d2470818391c4a2dec18c49fad484bc0c..7e630fff9277c6cf0e509fadd176600ce6bb1f44 100644 (file)
@@ -284,7 +284,7 @@ char *kadmin_startup(argc, argv)
             }
             krb5_free_principal(context, princ);
             freeprinc++;
-       } else if (use_keytab != NULL) {
+       } else if (use_keytab != 0) {
             if (retval = krb5_sname_to_principal(context, NULL,
                                                  "host",
                                                  KRB5_NT_SRV_HST,