diff options
author | David Lamparter <equinox@diac24.net> | 2010-02-02 01:35:31 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2010-02-03 05:26:24 +0100 |
commit | fd7307bd4efb5739a949256d6836dc6535c877c9 (patch) | |
tree | 04a0109febefcb17357dcc9c01e22af5adf53dcc /lib/log.c | |
parent | ddd18e79ddadc2aa3ceb85e0424c782559726463 (diff) | |
download | quagga-fd7307bd4efb5739a949256d6836dc6535c877c9.tar.bz2 quagga-fd7307bd4efb5739a949256d6836dc6535c877c9.tar.xz |
lib: lookup(): support 0 as a key, use NULL str for end of list
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |