From 02b3ae4ff1344c0ee9451ceb4fb2935667fbd470 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 31 Dec 2001 08:30:46 +0000 Subject: 2001-12-31 Roland McGrath * url.c (url_decode): Don't clobber *ENC in the dummy run. --- libstore/url.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libstore/url.c b/libstore/url.c index 7ed11833..30f996e8 100644 --- a/libstore/url.c +++ b/libstore/url.c @@ -77,7 +77,8 @@ url_decode (struct store_enc *enc, const struct store_class *const *classes, *store = &dummy; return 0; } - error_t err = store_std_leaf_decode (enc, &dummy_create, &dummyptr); + struct store_enc dummy_enc = *enc; + error_t err = store_std_leaf_decode (&dummy_enc, &dummy_create, &dummyptr); if (err) return err; -- cgit v1.2.3