]> git.meshlink.io Git - catta/commitdiff
fix error translation
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2005 13:35:30 +0000 (13:35 +0000)
committerLennart Poettering <lennart@poettering.net>
Fri, 19 Aug 2005 13:35:30 +0000 (13:35 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@356 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-common/dbus.c

index 93bd8cd7a75b4cba5fd39e96818d0e60b4d8718d..7c627a60809c37be05bd325b99b74bbf26930f23 100644 (file)
@@ -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;