2006-04-06 [mones] 2.1.0cvs7
[claws.git] / src / common / mgutils.c
index e809b2deb6164fb08f58b2687b527deb57870bdb..30226833b9e4927fbf7d098a936b637c21b42fab 100644 (file)
@@ -115,7 +115,7 @@ gchar *mgu_list_coalesce( GSList *list ) {
 * Replace existing string with new string.
 */
 gchar *mgu_replace_string( gchar *str, const gchar *value ) {
 * Replace existing string with new string.
 */
 gchar *mgu_replace_string( gchar *str, const gchar *value ) {
-       if( str ) g_free( str );
+       g_free( str );
        if( value ) {
                str = g_strdup( value );
                g_strstrip( str );
        if( value ) {
                str = g_strdup( value );
                g_strstrip( str );