From c532a4a05dd567990a80578040256ec95a710ae2 Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Thu, 21 Aug 2008 04:22:46 +0000 Subject: [PATCH] Misplaced comment git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2037 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/check_ntp_peer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 73ba899..6963fde 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 */ -- 2.30.2