summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2014-06-17 01:50:29 -0400
committerMike Pavone <pavone@retrodev.com>2014-06-17 01:50:29 -0400
commita39a82cc9773c8336eaa48379f2d2fe3615f178c (patch)
tree667e21515dca8e7c37ee548aa44a6130b6e44610 /util.c
parent14c0b3e916d866601311f9bbe53ab64ed560f67f (diff)
blastem builds and almost works on OS X now
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 2bc3109..5367cd5 100644
--- a/util.c
+++ b/util.c
@@ -92,7 +92,7 @@ char * readlink_alloc(char * path)
if (linksize == -1) {
perror("readlink");
free(linktext);
- linktext = NULL;
+ return NULL;
}
} while ((linksize+1) > cursize);
linktext[linksize] = 0;