diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-04-13 10:11:01 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-04-13 10:11:01 +0200 |
commit | 0a4fa8a77c9e08138de7019d453c9ecee470ca06 (patch) | |
tree | 5174ea266ef376c8be4312a1803b5f011e43b003 /src | |
parent | dbe01cb34001f06519a42e9c21d144f52e7d8758 (diff) | |
parent | ec23fe6c0ae303ad54519fe914bdd675ed7fa3ea (diff) | |
download | ouroboros-0a4fa8a77c9e08138de7019d453c9ecee470ca06.tar.gz ouroboros-0a4fa8a77c9e08138de7019d453c9ecee470ca06.zip |
Merged in dstaesse/ouroboros/instance-name (pull request #55)
lib: fixed missing check in instance_name_create
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/instance_name.c | 2 |
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; |