From e554a1408c5289d553050050dd1262071e894ce0 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Mon, 24 Aug 2009 18:41:25 +0200 Subject: [PATCH 05/17] In cdk_strlist_next, root is expected to be non-NULL and the check wasn't sufficient anyway. --- lib/opencdk/misc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/opencdk/misc.c b/lib/opencdk/misc.c index 50977bf..abb2ff5 100644 --- a/lib/opencdk/misc.c +++ b/lib/opencdk/misc.c @@ -118,7 +118,7 @@ cdk_strlist_next (cdk_strlist_t root, const char **r_str) { cdk_strlist_t node; - if (root && r_str) + if (r_str) *r_str = root->d; for (node = root->next; node; node = node->next) return node; -- 1.6.4.1