From 68d5206a03ddbb3d55d893e61a40712eac9bf58c Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 1 Mar 2014 16:01:41 -0500 Subject: [PATCH] regressions/ck_hp_fifo: Require non-NULL stub node. --- regressions/ck_hp/validate/ck_hp_fifo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/regressions/ck_hp/validate/ck_hp_fifo.c b/regressions/ck_hp/validate/ck_hp_fifo.c index 0bd3584..297041b 100644 --- a/regressions/ck_hp/validate/ck_hp_fifo.c +++ b/regressions/ck_hp/validate/ck_hp_fifo.c @@ -166,6 +166,10 @@ main(int argc, char *argv[]) ck_hp_fifo_entry_t *entry; ck_hp_fifo_deinit(&fifo, &entry); + + if (entry == NULL) + ck_error("ERROR: Expected non-NULL stub node.\n"); + free(entry); ck_hp_fifo_init(&fifo, malloc(sizeof(ck_hp_fifo_entry_t)));