Fixed a misspelling of 0 as NULL.

This commit is contained in:
Bruce Evans 2004-03-14 05:51:20 +00:00
parent 8f650450c6
commit f342fec625
2 changed files with 2 additions and 2 deletions

View File

@ -325,7 +325,7 @@ userlist(int argc, char **argv)
continue;
*conf_realname = '\0'; /* Replace : with NUL */
for (p = argv; *p; ++p) {
if (strcmp(*p, conf_alias) == NULL) {
if (strcmp(*p, conf_alias) == 0) {
if ((*p = strdup(conf_realname+1)) == NULL) {
err(1, NULL);
}

View File

@ -246,7 +246,7 @@ copystr(void)
}
out:
*cp = 0;
printf("%d", hashit(buf, 1, NULL));
printf("%d", hashit(buf, 1, 0));
}
int