* dump.c (name_matches): Cleanup warning of assignments in
authorEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 20:26:06 +0000 (20:26 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 18 Jun 2001 20:26:06 +0000 (20:26 +0000)
conditionals.

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

src/kadmin/dbutil/ChangeLog
src/kadmin/dbutil/dump.c

index d8b1e59bb997540f0474d018c9d9d9ea008f8de5..39f2e63d90c5aa5099e8d301f59bc3074b5bcf46 100644 (file)
@@ -1,3 +1,8 @@
+2001-06-18  Ezra Peisach  <epeisach@mit.edu>
+
+       * dump.c (name_matches): Cleanup warning of assignments in
+       conditionals.
+
 2001-06-18  Ezra Peisach  <epeisach@mit.edu>
 
        * dump.c: Include regex.h if exists and if HAVE_REGCOMP
index 3bfc4ebafe255b18c63919430b624d40b8b0cf35..dfdfb7dee15234838577003239a839623027cbaa 100644 (file)
@@ -356,9 +356,8 @@ name_matches(name, arglist)
        /*
         * Compile the regular expression.
         */
-       if (match_error = regcomp(&match_exp,
-                                 arglist->names[i],
-                                 REG_EXTENDED)) {
+       match_error = regcomp(&match_exp, arglist->names[i], REG_EXTENDED);
+       if (match_error) {
            errmsg_size = regerror(match_error,
                                   &match_exp,
                                   match_errmsg,
@@ -369,7 +368,8 @@ name_matches(name, arglist)
        /*
         * See if we have a match.
         */
-       if (match_error = regexec(&match_exp, name, 1, &match_match, 0)) {
+       match_error = regexec(&match_exp, name, 1, &match_match, 0);
+       if (match_error) {
            if (match_error != REG_NOMATCH) {
                errmsg_size = regerror(match_error,
                                       &match_exp,