summaryrefslogtreecommitdiffstats
path: root/src/ref.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ref.c')
-rw-r--r--src/ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ref.c b/src/ref.c
index 5a86aa8..4dc93bf 100644
--- a/src/ref.c
+++ b/src/ref.c
@@ -7,7 +7,7 @@ ref_init(void *data)
struct ref *ref;
ref = malloc(sizeof(struct ref));
- ASSERT(ref != NULL);
+ if (!ref) return NULL;
ref->link = LINK_EMPTY;
ref->data = data;
return ref;