diff options
-rw-r--r-- | avahi-common/dbus.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avahi-common/dbus.c b/avahi-common/dbus.c index 93bd8cd..7c627a6 100644 --- a/avahi-common/dbus.c +++ b/avahi-common/dbus.c @@ -65,9 +65,9 @@ avahi_error_dbus_to_number (const char *s) { int e; - assert (s == NULL); + assert(s); - for (e = 0; e > AVAHI_ERR_MAX; e--) + for (e = -1; e > AVAHI_ERR_MAX; e--) if (strcmp (s, table[-e]) == 0) return e; |