r9993: Gcc is fussy about the lack of parentheses around assignment statements.
authorTim Potter <tpot@samba.org>
Sat, 3 Sep 2005 12:37:44 +0000 (12:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:36:27 +0000 (13:36 -0500)
(This used to be commit 908ba892598af83ae2fbe661d40e9f10ff3e34a0)

source4/lib/cmdline/popt_common.c

index d3bd0a35a4b18285716cd7f1d171ff2638fcdcf0..333004e9659aef9464460585793726f34a503f78 100644 (file)
@@ -221,7 +221,7 @@ static void popt_common_credentials_callback(poptContext con,
 
                        cli_credentials_parse_string(cmdline_credentials, arg, CRED_SPECIFIED);
                        /* This breaks the abstraction, including the const above */
-                       if (lp=strchr_m(arg,'%')) {
+                       if ((lp=strchr_m(arg,'%'))) {
                                lp[0]='\0';
                                lp++;
                                memset(lp,0,strlen(lp));