diff options
Diffstat (limited to 'Source/kwsys/Registry.cxx')
-rw-r--r-- | Source/kwsys/Registry.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/kwsys/Registry.cxx b/Source/kwsys/Registry.cxx index a4e8d02..dcfec52 100644 --- a/Source/kwsys/Registry.cxx +++ b/Source/kwsys/Registry.cxx @@ -36,6 +36,8 @@ #include <ctype.h> // for isspace #include <stdio.h> +#include <string.h> /* strlen, strncpy */ +#include <stdlib.h> /* getenv */ #ifdef _WIN32 # include <windows.h> @@ -210,13 +212,13 @@ bool Registry::ReadValue(const char *subkey, const char *key, const char **value) { - *value = 0; bool res = false; bool open = false; if ( ! value ) { return res; } + *value = 0; if ( !m_Opened ) { if ( !this->Open(this->GetTopLevel(), subkey, |