[Devel] [PATCH 03/10] cr_tests: libcrtest: Check for NULL checkpoint labels

Matt Helsley matthltc at us.ibm.com
Mon Mar 15 16:00:59 PDT 2010


Signed-off-by: Matt Helsley <matthltc at us.ibm.com>
---
 libcrtest/labels.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libcrtest/labels.h b/libcrtest/labels.h
index f0137dc..f55721b 100644
--- a/libcrtest/labels.h
+++ b/libcrtest/labels.h
@@ -48,7 +48,7 @@ lbl: \
 	ret = action ; \
 \
 	if ((ckpt_op_num == op_num) || (ckpt_op_num == -1) || \
-	    (strcmp(ckpt_label, ___ ##lbl## _l) == 0)) \
+	    (ckpt_label && strcmp(ckpt_label, ___ ##lbl## _l) == 0)) \
 		do_ckpt(); \
 	if (ret < 0) { \
 		fprintf(logfp, "FAIL: %d\t%s: %s\n", \
-- 
1.6.3.3

_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list