diff options
author | Alessandro Ghedini <al3xbio@gmail.com> | 2012-02-12 14:49:32 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-02-13 19:58:23 +0100 |
commit | e71ac0c6fad6643ad99b5cf6f1d566dfb79990d2 (patch) | |
tree | a4355609e84b3ce6a7e7621684bf3e9c75540a82 /tests/libtest/lib590.c | |
parent | 7ed25fcc5c89c135bac3120b5efd820649dc9083 (diff) |
curl tool: allow negative numbers as option values
Fix the str2num() function to not check if the input string starts with a
digit, since strtol() supports numbers prepended with '-' (and '+') too.
This makes the --max-redirs option work as documented.
Diffstat (limited to 'tests/libtest/lib590.c')
0 files changed, 0 insertions, 0 deletions