aboutsummaryrefslogtreecommitdiff
path: root/src/ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 180bf2b..565777c 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -92,6 +92,9 @@ struct imv_ipc *imv_ipc_create(void)
}
struct imv_ipc *ipc = calloc(1, sizeof *ipc);
+ if (ipc == NULL) {
+ return NULL;
+ }
ipc->fd = sockfd;
pthread_t thread;