summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-13 10:11:01 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-04-13 10:11:01 +0200
commit0a4fa8a77c9e08138de7019d453c9ecee470ca06 (patch)
tree5174ea266ef376c8be4312a1803b5f011e43b003
parentdbe01cb34001f06519a42e9c21d144f52e7d8758 (diff)
parentec23fe6c0ae303ad54519fe914bdd675ed7fa3ea (diff)
downloadouroboros-0a4fa8a77c9e08138de7019d453c9ecee470ca06.tar.gz
ouroboros-0a4fa8a77c9e08138de7019d453c9ecee470ca06.zip
Merged in dstaesse/ouroboros/instance-name (pull request #55)
lib: fixed missing check in instance_name_create
-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;