SCCS-vsn: usr.sbin/sendmail/src/map.c 6.7
-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"
while (*p != '\0' && !(isascii(*p) && isspace(*p)))
p++;
if (*p != '\0')
while (*p != '\0' && !(isascii(*p) && isspace(*p)))
p++;
if (*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++;
- *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);
+ }