Remove unneeded code with notnull.cocci script
authorlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 14 Jul 2010 02:20:30 +0000 (02:20 +0000)
committerlucas <lucas@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 14 Jul 2010 02:20:30 +0000 (02:20 +0000)
This continues previous commit with more complex places, where it required
more than just removing some "ifs".

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@50242 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_config/ecore_config_ipc_ecore.c

index 3c8e1fd..f7e0d5a 100644 (file)
@@ -336,7 +336,7 @@ _ecore_config_ipc_ecore_init(const char *pipe_name, void **data)
    ecore_event_handler_add(ECORE_IPC_EVENT_CLIENT_DATA,
                           _ecore_config_ipc_client_sent, server);
 
-   if (server)
+   if (*server)
      {
        INF("IPC/eCore: Server is listening on %s.", pipe_name);
      }