summaryrefslogtreecommitdiffstats
path: root/lib/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/log.c b/lib/log.c
index e2ac0386..58b25a09 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -761,7 +761,7 @@ lookup (const struct message *mes, int key)
{
const struct message *pnt;
- for (pnt = mes; pnt->key != 0; pnt++)
+ for (pnt = mes; pnt->str; pnt++)
if (pnt->key == key)
return pnt->str;