diff options
author | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-11-02 11:56:02 -0500 |
commit | bbd8d071675c278571c804fd0a71b51e7dfa8d7e (patch) | |
tree | b2e13b638657ae8827ffb72c9b9f42cb97126f4b /src/or/config.c | |
parent | ded33cb2c73151e2f02a8a1d520b54e4f1c14072 (diff) | |
download | tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.tar.gz tor-bbd8d071675c278571c804fd0a71b51e7dfa8d7e.zip |
Apply new calloc coccinelle patch
Diffstat (limited to 'src/or/config.c')
-rw-r--r-- | src/or/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c index 3f31e876dd..681955e7eb 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -4856,7 +4856,7 @@ parse_client_transport_line(const or_options_t *options, if (!validate_only && !is_useless_proxy) { proxy_argc = line_length-2; tor_assert(proxy_argc > 0); - proxy_argv = tor_calloc(sizeof(char *), (proxy_argc + 1)); + proxy_argv = tor_calloc((proxy_argc + 1), sizeof(char *)); tmp = proxy_argv; for (i=0;i<proxy_argc;i++) { /* store arguments */ *tmp++ = smartlist_get(items, 2); @@ -5143,7 +5143,7 @@ parse_server_transport_line(const or_options_t *options, if (!validate_only) { proxy_argc = line_length-2; tor_assert(proxy_argc > 0); - proxy_argv = tor_calloc(sizeof(char *), (proxy_argc + 1)); + proxy_argv = tor_calloc((proxy_argc + 1), sizeof(char *)); tmp = proxy_argv; for (i=0;i<proxy_argc;i++) { /* store arguments */ |