sync 3.0 into HEAD for the last time
[vlendec/samba-autobuild/.git] / source3 / lib / access.c
index c30b3c33cc2867897c659b1ade86933c4d522682..a874c8b1e2065e01a06c898ff4510bfbd85a5192 100644 (file)
@@ -281,13 +281,12 @@ static BOOL only_ipaddrs_in_list(const char** list)
                }
                
                if (!is_ipaddress(*list)) {
-                       char *p;
                        /* 
                         * if we failed, make sure that it was not because the token
                         * was a network/netmask pair.  Only network/netmask pairs
                         * have a '/' in them
                         */
-                       if ((p=strchr_m(*list, '/')) == NULL) {
+                       if ((strchr_m(*list, '/')) == NULL) {
                                only_ip = False;
                                DEBUG(3,("only_ipaddrs_in_list: list has non-ip address (%s)\n", *list));
                                break;