From a0a6ded818ff345fa5e6f251e83cb52f6e4ada2e Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 21 Nov 2015 19:15:26 +0100 Subject: Add missing include. Don't use strdup before string assignment... --- src/configfile.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/configfile.cc b/src/configfile.cc index 6b0d14f..8447d9a 100644 --- a/src/configfile.cc +++ b/src/configfile.cc @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -65,7 +66,7 @@ static std::string configPath() configpath = szPath; } #else - std::string configpath = strdup(getenv("HOME")); + std::string configpath = getenv("HOME"); #endif configpath += SEP; configpath += CONFIGDIRNAME; -- cgit v1.2.3