diff options
author | default <nobody@localhost> | 2022-09-26 13:06:15 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2022-09-26 13:06:15 +0200 |
commit | 1834dc57b0209b9e88c4efafd05ff996587aa96a (patch) | |
tree | ada5a50adbb8ca6d31a53afa1eb8498b45cbc758 | |
parent | 8f738e1417958a5e26fd8bfdf30fa4a166c0075a (diff) |
More error testing in srv_archive().
-rw-r--r-- | snac.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -163,8 +163,8 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, } if (p_size && payload) { - xs *payload_fn; - xs *payload_fn_raw; + xs *payload_fn = NULL; + xs *payload_fn_raw = NULL; char *v = xs_dict_get(req, "content-type"); if (v && xs_str_in(v, "json") != -1) { @@ -195,7 +195,7 @@ void srv_archive(char *direction, char *req, char *payload, int p_size, } if (b_size && body) { - xs *body_fn; + xs *body_fn = NULL; char *v = xs_dict_get(headers, "content-type"); if (v && xs_str_in(v, "json") != -1) { |