]> git.meshlink.io Git - catta/commitdiff
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 49ace50c2a5a1f5d9b8aab1a0df9985166e00c54..2ef1bf6cebb5dc5e1c28bc01dc806729ce341695 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;
 }