]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4062] Finished previous change
authorFrancis Dupont <fdupont@isc.org>
Thu, 1 Oct 2015 15:59:55 +0000 (17:59 +0200)
committerFrancis Dupont <fdupont@isc.org>
Thu, 1 Oct 2015 15:59:55 +0000 (17:59 +0200)
src/lib/dhcpsrv/tests/daemon_unittest.cc

index bcc7d09a8d9614bab51a1b3e421a322badef1acc..52b573e035bebeffb003d6ccd30ffb4e7dddd040 100644 (file)
@@ -57,11 +57,11 @@ namespace {
 class DaemonTest : public ::testing::Test {
 public:
     /// @brief Constructor
-    DaemonTest() : env_(0), env_copy_() {
+    DaemonTest() : env_copy_() {
         // Take a copy of KEA_PIDFILE_DIR environment variable value
-        char *env_ = getenv("KEA_PIDFILE_DIR");
-        if (env_) {
-            env_copy_ = std::string(env_);
+        char *env_value = getenv("KEA_PIDFILE_DIR");
+        if (env_value) {
+            env_copy_ = std::string(env_value);
         }
     }