diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-07-26 14:07:26 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-07-26 14:07:26 +0400 |
commit | 62c5b2423eb3da2b13350583c66bd031b297196d (patch) | |
tree | 423d848dd373d0ec8d49c1f24260168626cd79e0 | |
parent | e4403cb5b5da34430356d1d7aedecfeca48d59e3 (diff) | |
download | external_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.zip external_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.tar.gz external_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.tar.bz2 |
Silently ignore null client/message in ipc log
-rw-r--r-- | samsung-ipc/ipc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/samsung-ipc/ipc.c b/samsung-ipc/ipc.c index c1139ec..a2662d1 100644 --- a/samsung-ipc/ipc.c +++ b/samsung-ipc/ipc.c @@ -48,7 +48,9 @@ void log_handler_default(const char *message, void *user_data) void ipc_client_log(struct ipc_client *client, const char *message, ...) { - assert(client->log_handler != NULL); + if (!message || !client || !client->log_handler) { + return; + } va_list args; char buffer[4096]; |