diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-31 08:30:46 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-31 08:30:46 +0000 |
commit | 02b3ae4ff1344c0ee9451ceb4fb2935667fbd470 (patch) | |
tree | 656d0cdbc498dae7b70d3dce43062b3489ce72bc /libstore | |
parent | 768ffdc34124e5562546f6f479999f86af490445 (diff) |
2001-12-31 Roland McGrath <roland@frob.com>
* url.c (url_decode): Don't clobber *ENC in the dummy run.
Diffstat (limited to 'libstore')
-rw-r--r-- | libstore/url.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |