Fix compilation error on 9-CURRENT.

Reported by:	nyan
MFC after:	2 weeks
This commit is contained in:
Hajimu UMEMOTO 2010-04-04 14:23:28 +00:00
parent 227c8e2a66
commit 8812e23c43

View File

@ -282,11 +282,11 @@ parseservices(const char *fname, StringList *sl)
/* build list of aliases */
if (sl_find(s, name) == NULL) {
char *p;
char *p2;
if ((p = strdup(name)) == NULL)
if ((p2 = strdup(name)) == NULL)
err(1, "Cannot copy string");
(void)sl_add(s, p);
(void)sl_add(s, p2);
}
if (aliases) {
@ -294,11 +294,11 @@ parseservices(const char *fname, StringList *sl)
if (alias[0] == '\0')
continue;
if (sl_find(s, alias) == NULL) {
char *p;
char *p2;
if ((p = strdup(alias)) == NULL)
if ((p2 = strdup(alias)) == NULL)
err(1, "Cannot copy string");
(void)sl_add(s, p);
(void)sl_add(s, p2);
}
}
}