2007-10-05 [colin] 3.0.2cvs11
[claws.git] / src / common / mgutils.c
index a2a91861e5284d3cab1548192db1b96a77cc67f6..d256ffcc394d9130aa36d25870aaaea21d5baba0 100644 (file)
@@ -35,6 +35,10 @@ void mgu_print_list( GSList *list, FILE *stream ) {
        GSList *node = list;
        while( node ) {
                int r = fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               if (r < 0) {
+                       perror("fprintf");
+                       break;
+               }
                node = g_slist_next( node );
        }
 }
@@ -46,6 +50,10 @@ void mgu_print_dlist( GList *list, FILE *stream ) {
        GList *node = list;
        while( node ) {
                int r = fprintf( stream, "\t- >%s<\n", (gchar *)node->data );
+               if (r < 0) {
+                       perror("fprintf");
+                       break;
+               }
                node = g_list_next( node );
        }
 }