Set id color to Default on allocation

master
C. McEnroe 2020-02-06 04:19:56 -05:00
parent 32ec697092
commit e9394bfff9
1 changed files with 1 additions and 0 deletions

1
chat.h
View File

@ -51,6 +51,7 @@ static inline size_t idFor(const char *name) {
if (id) return id;
idNames[idNext] = strdup(name);
if (!idNames[idNext]) err(EX_OSERR, "strdup");
idColors[idNext] = Default;
return idNext++;
}