1.1 --- a/gmyth/src/gmyth_stringlist.c Thu Mar 22 15:19:38 2007 +0000
1.2 +++ b/gmyth/src/gmyth_stringlist.c Fri Mar 23 22:54:24 2007 +0000
1.3 @@ -194,9 +194,6 @@
1.4
1.5 tmp_str = g_string_new (value);
1.6
1.7 - if ( NULL == tmp_str )
1.8 - return NULL;
1.9 -
1.10 strlist->glist = g_list_append (strlist->glist, tmp_str);
1.11
1.12 return tmp_str;
1.13 @@ -361,9 +358,7 @@
1.14 static void
1.15 gmyth_string_list_clear_element( GString *str_elem, void *data_aux )
1.16 {
1.17 - if ( str_elem != NULL ) {
1.18 - g_string_free( str_elem, TRUE );
1.19 - }
1.20 + g_string_free( str_elem, TRUE );
1.21 }
1.22
1.23 /** Removes all strings from the string list.
1.24 @@ -374,9 +369,9 @@
1.25 gmyth_string_list_clear_all ( GMythStringList *strlist )
1.26 {
1.27 if ( strlist != NULL && strlist->glist ) {
1.28 - g_list_foreach( strlist->glist, (GFunc)gmyth_string_list_clear_element, NULL );
1.29 - g_list_free (strlist->glist);
1.30 - strlist->glist = NULL;
1.31 + g_list_foreach( strlist->glist, (GFunc)gmyth_string_list_clear_element, NULL );
1.32 + g_list_free (strlist->glist);
1.33 + strlist->glist = NULL;
1.34 }
1.35 }
1.36