]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Remove duplicate strdup() calls
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Tue, 30 Jul 2024 17:02:13 +0000 (19:02 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Thu, 9 Jan 2025 17:03:26 +0000 (18:03 +0100)
commitb46a2046ed95d647618d546c802fe9272c4873cb
tree7fe9dc20c5089f3f43a45038a15854a134b52fee
parentaebfabb3544f1083384a0187820e82f50c1fb329
Remove duplicate strdup() calls

The arguments of openconnect_set_mobile_info() have been strdup'ed:
- prior to passing them to openconnect_set_mobile_info(),
- inside openconnect_set_mobile_info().

We don't need both. I have chosen to keep the strdup() call inside
openconnect_set_mobile_info(), and discard the strdup() of the arguments
just before calling openconnect_set_mobile_info().

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
main.c