diff options
-rwxr-xr-x | email-ipc/email-socket/email-ipc-socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/email-ipc/email-socket/email-ipc-socket.c b/email-ipc/email-socket/email-ipc-socket.c index f7f7429..9916f3b 100755 --- a/email-ipc/email-socket/email-ipc-socket.c +++ b/email-ipc/email-socket/email-ipc-socket.c @@ -219,7 +219,7 @@ EXPORT_API int emipc_open_email_socket(int fd, const char *path) SNPRINTF(uid_string, sizeof(uid_string), "%d", getuid()); ipc_socket_path = g_strconcat(EM_SOCKET_USER_PATH, "/", uid_string, "/", EM_SOCKET_PATH_NAME, NULL); - if (!ipc_socket_path) { + if (NULL == ipc_socket_path) { EM_DEBUG_EXCEPTION("ipc_socket_path is null"); return EMAIL_ERROR_SYSTEM_FAILURE; } @@ -302,7 +302,7 @@ EXPORT_API int emipc_connect_email_socket(int fd) memset(&server, 0, sizeof(server)); server.sun_family = AF_UNIX; - if (!ipc_socket_path) { + if (NULL == ipc_socket_path) { EM_DEBUG_EXCEPTION("ipc_socket_path is null"); return EMAIL_ERROR_SYSTEM_FAILURE; } |