diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-08-21 04:22:46 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2008-08-21 04:22:46 +0000 |
commit | c532a4a05dd567990a80578040256ec95a710ae2 (patch) | |
tree | 507dd48b800fa20be5a153e643bbca392f337b59 /plugins | |
parent | 49bc8237c09e3fc0963ec18cedc549cb5c7373df (diff) | |
download | monitoring-plugins-c532a4a05dd567990a80578040256ec95a710ae2.tar.gz |
Misplaced comment
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2037 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_ntp_peer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 73ba8990..6963fde5 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c @@ -183,10 +183,10 @@ char *extract_value(const char *varlist, const char *name){ char *tmp=NULL, *value=NULL; int i; - /* Strip any leading space */ - while (1) { + /* Strip any leading space */ for (varlist; isspace(varlist[0]); varlist++); + if (strncmp(name, varlist, strlen(name)) == 0) { varlist += strlen(name); /* strip trailing spaces */ |