There is no need to test a pointer to be freed for being NULL. free() does this anywa...
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Aug 2005 20:01:39 +0000 (20:01 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Aug 2005 20:01:39 +0000 (20:01 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@295 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-client/client.c

index 49ace50..2ef1bf6 100644 (file)
@@ -264,7 +264,7 @@ avahi_client_new (AvahiClientCallback callback, void *user_data)
     return tmp;
 
 fail:
-    if (tmp) free (tmp);
+    free (tmp);
     return NULL;
 }