summaryrefslogtreecommitdiff
path: root/src/lib/instance_name.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-04-13 09:54:08 +0200
committerdimitri staessens <[email protected]>2016-04-13 09:54:08 +0200
commitec23fe6c0ae303ad54519fe914bdd675ed7fa3ea (patch)
tree5174ea266ef376c8be4312a1803b5f011e43b003 /src/lib/instance_name.c
parentdbe01cb34001f06519a42e9c21d144f52e7d8758 (diff)
downloadouroboros-ec23fe6c0ae303ad54519fe914bdd675ed7fa3ea.tar.gz
ouroboros-ec23fe6c0ae303ad54519fe914bdd675ed7fa3ea.zip
lib: fixed missing check in instance_name_create
Diffstat (limited to 'src/lib/instance_name.c')
-rw-r--r--src/lib/instance_name.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/instance_name.c b/src/lib/instance_name.c
index 634cf310..10a432d5 100644
--- a/src/lib/instance_name.c
+++ b/src/lib/instance_name.c
@@ -35,6 +35,8 @@ instance_name_t * instance_name_create()
instance_name_t * tmp;
tmp = malloc(sizeof *tmp);
+ if (tmp == NULL)
+ return NULL;
tmp->name = NULL;
tmp->id = 0;