fix some minor glitches
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 26 Mar 1993 02:26:55 +0000 (18:26 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Fri, 26 Mar 1993 02:26:55 +0000 (18:26 -0800)
SCCS-vsn: usr.sbin/sendmail/src/map.c 6.7

usr/src/usr.sbin/sendmail/src/map.c

index 3b92e5c..fc51a84 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)map.c      6.6 (Berkeley) %G%";
+static char sccsid[] = "@(#)map.c      6.7 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -310,21 +310,22 @@ map_parseargs(map, pp)
                while (*p != '\0' && !(isascii(*p) && isspace(*p)))
                        p++;
                if (*p != '\0')
                while (*p != '\0' && !(isascii(*p) && isspace(*p)))
                        p++;
                if (*p != '\0')
-                       *p++ = 0;
+                       *p++ = '\0';
        }
        if (map->map_app != NULL)
                map->map_app = newstr(map->map_app);
        if (map->map_domain != NULL)
                map->map_domain = newstr(map->map_domain);
 
        }
        if (map->map_app != NULL)
                map->map_app = newstr(map->map_app);
        if (map->map_domain != NULL)
                map->map_domain = newstr(map->map_domain);
 
-       if (*p == '\0')
-               return NULL;
-       map->map_file = p;
-       while (*p != '\0' && !(isascii(*p) && isspace(*p)))
-               p++;
        if (*p != '\0')
        if (*p != '\0')
-               *p++ = '\0';
-       map->map_file = newstr(map->map_file);
+       {
+               map->map_file = p;
+               while (*p != '\0' && !(isascii(*p) && isspace(*p)))
+                       p++;
+               if (*p != '\0')
+                       *p++ = '\0';
+               map->map_file = newstr(map->map_file);
+       }
        *pp = p;
 }
 \f
        *pp = p;
 }
 \f