]> git.ipfire.org Git - thirdparty/curl.git/commit
tool_formparse: avoid clobbering on function params
authorDaniel Gustafsson <daniel@yesql.se>
Thu, 8 Dec 2022 22:45:18 +0000 (23:45 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Thu, 8 Dec 2022 22:45:18 +0000 (23:45 +0100)
commit76b73c746851f94f8d5e6c5150413d534e9c2c8d
tree4091bf6826e0d2175e99e00e536fbdfe372348c2
parent60453483b5c26447df95a8a80712e809094cb2a2
tool_formparse: avoid clobbering on function params

While perfectly legal to do, clobbering function parameters and using
them as local variables is confusing at best and rarely improves code
readability.  Fix by using a local variable instead, no functionality
is changed.

This also renames the parameter from data to mime_data since the term
data is (soft) reserved for the easy handle struct.

Closes: #10046
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
src/tool_formparse.c