diff options
Diffstat (limited to 'samsung-ipc/ipc.c')
-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 ee27c4d..8cd2488 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]; |