aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc
diff options
context:
space:
mode:
authorAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-26 14:07:26 +0400
committerAlexander Tarasikov <alexander.tarasikov@gmail.com>2012-07-26 14:07:26 +0400
commit62c5b2423eb3da2b13350583c66bd031b297196d (patch)
tree423d848dd373d0ec8d49c1f24260168626cd79e0 /samsung-ipc
parente4403cb5b5da34430356d1d7aedecfeca48d59e3 (diff)
downloadexternal_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.zip
external_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.tar.gz
external_libsamsung-ipc-62c5b2423eb3da2b13350583c66bd031b297196d.tar.bz2
Silently ignore null client/message in ipc log
Diffstat (limited to 'samsung-ipc')
-rw-r--r--samsung-ipc/ipc.c4
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];