curl-curl/src
Daniel Stenberg 49a87e93c3
tool_getparam: avoid redundant condition in set_rate
When the number parsing fails, the pointer is never moved so there's no
point in checking that.

Pointed out by CodeSonar

Closes #16895
2025-04-01 14:29:04 +02:00
..
.checksrc src: replace strto[u][ld] with curlx_str_ parsers 2025-03-10 08:09:41 +01:00
.gitignore gitignore: add generated unity sources for lib and src 2025-01-27 22:55:39 +01:00
CMakeLists.txt build: do not apply curl debug macros to tests/server by default 2025-03-14 12:59:32 +01:00
curl.rc windows: drop code and curl manifest targeting W2K and older 2025-02-24 21:00:31 +01:00
Makefile.am autotools: use CURLDEBUG to exclude TrackMemory code from unity 2025-03-14 13:27:46 +01:00
Makefile.inc curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
mk-file-embed.pl src: guard for double declaration of curl_ca_embed in unity builds 2024-10-16 17:27:56 +02:00
mkhelp.pl build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
slist_wc.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
slist_wc.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
terminal.c lib: rename curlx_strtoofft to Curl_str_numblanks() 2025-03-10 10:39:20 +01:00
terminal.h curl: make warnings and other messages aware of terminal width 2024-05-28 23:12:32 +02:00
tool_binmode.h src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_bname.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_bname.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_dbg.c curl: use realtime in trace timestamps 2024-12-02 21:21:18 +01:00
tool_cb_dbg.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_hdr.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_cb_hdr.h tool: support --show-headers AND --remote-header-name 2024-10-02 08:04:33 +02:00
tool_cb_prg.c curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_cb_prg.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_cb_rea.c curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_cb_rea.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cb_see.c build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
tool_cb_see.h tool: move tool_ftruncate64 to tool_util.c 2024-04-25 09:20:38 +02:00
tool_cb_soc.c curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_soc.h curl: (on linux) add MPTCP support 2024-06-07 10:54:19 +02:00
tool_cb_wrt.c core: stop redefining E* macros on Windows, map EACCES, related fixes 2025-03-13 00:03:25 +01:00
tool_cb_wrt.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_cfgable.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_cfgable.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_dirhie.c core: stop redefining E* macros on Windows, map EACCES, related fixes 2025-03-13 00:03:25 +01:00
tool_dirhie.h tool: use errorf() for error output 2023-06-01 08:19:11 +02:00
tool_doswin.c windows: fix issues detected by clang-tidy, and some more 2025-03-24 10:15:08 +01:00
tool_doswin.h build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
tool_easysrc.c tool_setopt: reduce use of "code hiding" macros 2025-03-13 17:25:33 +01:00
tool_easysrc.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
tool_filetime.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_filetime.h src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_findfile.c Makefile.mk: drop in favour of autotools and cmake (MS-DOS, AmigaOS3) 2024-12-16 23:20:55 +01:00
tool_findfile.h windows: use built-in _WIN32 macro to detect Windows 2023-11-22 15:42:25 +00:00
tool_formparse.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_formparse.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_getparam.c tool_getparam: avoid redundant condition in set_rate 2025-04-01 14:29:04 +02:00
tool_getparam.h src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_getpass.c build: add Windows CE / CeGCC support, with CI jobs 2025-02-21 13:56:34 +01:00
tool_getpass.h code: language cleanup in comments 2024-07-01 22:58:55 +02:00
tool_help.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_help.h build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_helpers.c curl: add byte range support to --variable reading from file 2024-12-21 11:46:27 +01:00
tool_helpers.h src: tidy up types, add necessary casts 2024-05-17 12:32:04 +02:00
tool_hugehelp.h build: drop tool_hugehelp.c.cvs, tidy up macros, drop buildconf.bat 2025-01-26 14:22:49 +01:00
tool_ipfs.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_ipfs.h ipfs: add options to disable 2024-09-21 12:08:32 +02:00
tool_libinfo.c tidy-up: use CURL_ARRAYSIZE() 2025-02-19 00:59:45 +01:00
tool_libinfo.h tool_getparam: fail --hostpubsha256 if libssh2 is not used 2025-01-28 10:30:40 +01:00
tool_listhelp.c prox/preproxy.md: document argument within <brackets> 2025-03-31 13:42:29 +02:00
tool_main.c src: remove final uses of Curl_ symbol prefixes in tool code 2025-03-12 14:37:08 +01:00
tool_main.h tests/server: make the signal handler signal-safe 2025-03-28 12:02:38 +01:00
tool_msgs.c lib, src: delete stray curl_ prefix from printf calls 2024-08-26 11:00:15 +02:00
tool_msgs.h build: enable missing OpenSSF-recommended warnings, with fixes 2023-12-16 13:12:37 +00:00
tool_operate.c tool_operate: fix pluralization of seconds 2025-03-24 22:44:09 +01:00
tool_operate.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_operhlp.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_operhlp.h tool_cb_wrt: use "curl_response" if no file name in URL 2024-09-17 13:39:51 +02:00
tool_paramhlp.c tool_paramhlp: make proto2num skip leading commas better 2025-04-01 11:30:05 +02:00
tool_paramhlp.h curl: add byte range support to --variable reading from file 2024-12-21 11:46:27 +01:00
tool_parsecfg.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_parsecfg.h tool_ssls: switch to tool-specific get_line function 2025-02-06 22:25:35 +01:00
tool_progress.c curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_progress.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_sdecls.h tool_getparam: make --url support a file with URLs 2025-02-25 09:16:54 +01:00
tool_setopt.c tool_setopt: reduce use of "code hiding" macros 2025-03-13 17:25:33 +01:00
tool_setopt.h curl: add my_setopt_long() and _offt() 2025-03-11 14:58:13 +01:00
tool_setup.h tests/server: make the signal handler signal-safe 2025-03-28 12:02:38 +01:00
tool_sleep.c select: use poll() if existing, avoid poll() with no sockets 2024-10-01 15:11:50 +02:00
tool_sleep.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_ssls.c curl: add my_setopt_long() and _offt() 2025-03-11 14:58:13 +01:00
tool_ssls.h vtls: feature ssls-export for SSL session im-/export 2025-01-08 23:32:07 +01:00
tool_stderr.c src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_stderr.h src: avoid strdup on platforms not doing UTF8 conversions 2025-03-05 09:19:09 +01:00
tool_strdup.c copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_strdup.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_urlglob.c src: s/Curl_safefree/curlx_safefree 2025-03-11 07:25:01 +01:00
tool_urlglob.h src: replace strto[u][ld] with curlx_str_ parsers 2025-03-10 08:09:41 +01:00
tool_util.c curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_util.h curltime: use libcurl time functions in src and tests/server 2025-03-12 11:33:26 +01:00
tool_version.h config: rename the OS define to CURL_OS to reduce collision risk 2024-10-30 14:59:54 +01:00
tool_vms.c docs: use lowercase curl and libcurl 2025-01-02 17:15:54 +01:00
tool_vms.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
tool_writeout_json.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_writeout_json.h tool_writeout: bsearch the variable name 2024-06-10 23:12:05 +02:00
tool_writeout.c build: enable -Wcast-qual, fix or silence compiler warnings 2025-03-10 22:30:15 +01:00
tool_writeout.h curl: add write-out variable 'tls_earlydata' 2025-02-22 10:02:39 +01:00
tool_xattr.c tool_xattr: create the user.creator xattr attribute 2024-10-11 10:13:37 -07:00
tool_xattr.h copyright: update all copyright lines and remove year ranges 2023-01-03 09:19:21 +01:00
var.c src: use curlx_dyn_ prefix, not Curl_dyn_ 2025-03-10 22:55:41 +01:00
var.h Rename struct var to fix AIX build 2024-11-15 13:55:55 -08:00