diff options
author | Ton Voon <ton.voon@opsera.com> | 2010-06-21 20:43:33 +0100 |
---|---|---|
committer | Ton Voon <ton.voon@opsera.com> | 2010-06-21 20:43:33 +0100 |
commit | 9de4938ba85d5afd53e08f6a8e90fa4c477704fc (patch) | |
tree | 55da51fbe681f1d130a2242a6f9adc59577f537c /lib/utils_base.c | |
parent | bc9c95bdf4b47ab5d39dbdf35165837a4c4140c1 (diff) | |
download | monitoring-plugins-9de4938ba85d5afd53e08f6a8e90fa4c477704fc.tar.gz |
Use NP_STATE_DIR_PREFIX as compile variable
Diffstat (limited to 'lib/utils_base.c')
-rw-r--r-- | lib/utils_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils_base.c b/lib/utils_base.c index 1234e25a..70279178 100644 --- a/lib/utils_base.c +++ b/lib/utils_base.c | |||
@@ -403,7 +403,7 @@ char* _np_state_calculate_location_prefix(){ | |||
403 | env_dir = getenv("NAGIOS_PLUGIN_STATE_DIRECTORY"); | 403 | env_dir = getenv("NAGIOS_PLUGIN_STATE_DIRECTORY"); |
404 | if(env_dir && env_dir[0] != '\0') | 404 | if(env_dir && env_dir[0] != '\0') |
405 | return env_dir; | 405 | return env_dir; |
406 | return NP_SHAREDSTATE_DIR; | 406 | return NP_STATE_DIR_PREFIX; |
407 | } | 407 | } |
408 | 408 | ||
409 | /* | 409 | /* |