From 364cdcb626efa89061100efce7eb168155da9906 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 23 Feb 2009 14:18:13 +0000 Subject: added extended logging support --- src/string_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/string_list.c') diff --git a/src/string_list.c b/src/string_list.c index fa35789..bb59ff6 100644 --- a/src/string_list.c +++ b/src/string_list.c @@ -33,6 +33,7 @@ */ #include +#include #include #include "string_list.h" @@ -63,7 +64,7 @@ void string_list_clear(string_list_t* list) int string_list_add(string_list_t* list, const char* string) { if(!list) - return; + return -1; if(!list->first) { list->first = malloc(sizeof(string_list_element_t)); -- cgit v1.2.3