]> pilppa.com Git - uci.git/commitdiff
work around a gcc optimizer bug
authorFelix Fietkau <nbd@pi.lan>
Sat, 23 Aug 2008 09:44:07 +0000 (11:44 +0200)
committerFelix Fietkau <nbd@pi.lan>
Sat, 23 Aug 2008 09:44:07 +0000 (11:44 +0200)
history.c

index 789cd875429d72c61f9573188e080137b383f426..a31dbfaf1cb23d5ed196e4f6cbc66daf0a4ea042 100644 (file)
--- a/history.c
+++ b/history.c
@@ -318,7 +318,7 @@ static void uci_filter_history(struct uci_context *ctx, const char *name, const
 done:
        if (filename)
                free(filename);
-       uci_close_stream(f);
+       uci_close_stream(pctx->file);
        uci_foreach_element_safe(&list, tmp, e) {
                uci_free_element(e);
        }