diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-04-13 23:00:45 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-12-31 22:18:56 +0100 |
commit | a8d13336b5dc369a8f517ba55b5c38c9a23d06b2 (patch) | |
tree | 6780958c3c6685ec460125bde8b5fa6af07f5f18 /src/tool_getparam.c | |
parent | 9603c8299f135cb670261d0af58825274d0dfdae (diff) |
tool: make a few char pointers point to const char instead
These are read-only.
Closes https://github.com/curl/curl/pull/4771
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index a7bcdafac..ced453192 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -1985,8 +1985,7 @@ ParameterError getparameter(const char *flag, /* f or -long-flag */ } { /* byte range requested */ - char *tmp_range; - tmp_range = nextarg; + const char *tmp_range = nextarg; while(*tmp_range != '\0') { if(!ISDIGIT(*tmp_range) && *tmp_range != '-' && *tmp_range != ',') { warnf(global, "Invalid character is found in given range. " |