From: Lennart Poettering Date: Fri, 19 Aug 2005 13:35:30 +0000 (+0000) Subject: fix error translation X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=2551f4d1cb1c2dfb02474c3ff4b5c2606076ffba;p=catta fix error translation git-svn-id: file:///home/lennart/svn/public/avahi/trunk@356 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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;