]> granicus.if.org Git - cgit/commit
Do not unnecessarily strdup() environment variables
authorLukas Fleischer <cgit@cryptocrack.de>
Mon, 1 Apr 2013 15:11:15 +0000 (17:11 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 8 Apr 2013 13:43:17 +0000 (15:43 +0200)
commita92678b5f119811bccaca9c31b779c5ceed95572
treea990fc6e9b1248f9546b6865a2e81dacd1263254
parent3a8432437934a0a95f2618b534b1f5b3494d6b18
Do not unnecessarily strdup() environment variables

This reverts the memory duplication introduced in commit 60a2627, while
keeping everything else that has been cleaned up. The environment
variables are never modified, so we do not need to call xstrdupn() here.

Also, remove xstrdupn() which is no longer needed.

Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
cgit.c