# HG changeset patch # User Matti Hamalainen # Date 1425218376 -7200 # Node ID 791eaeb4f4127d68a9d308487ce55e475d44e3b4 # Parent 3d0a1f87e393921e9fcbf31d6abda2d9649109dc Cleanup. diff -r 3d0a1f87e393 -r 791eaeb4f412 th_config.c --- a/th_config.c Sun Mar 01 05:35:15 2015 +0200 +++ b/th_config.c Sun Mar 01 15:59:36 2015 +0200 @@ -745,7 +745,7 @@ if (fprintf(ctx->fp, "%s = ", item->name) < 0) return -3; - while (node != NULL) + for (; node != NULL; node = node->next) { if (node->data != NULL) fprintf(ctx->fp, "\"%s\"", (char *) node->data); @@ -755,7 +755,6 @@ fprintf(ctx->fp, ",\n"); th_print_indent(ctx, nesting); } - node = node->next; } if (fprintf(ctx->fp, "\n") < 0)