summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_peer.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r--plugins/check_ntp_peer.c4
1 files 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){
183 char *tmp=NULL, *value=NULL; 183 char *tmp=NULL, *value=NULL;
184 int i; 184 int i;
185 185
186 /* Strip any leading space */
187
188 while (1) { 186 while (1) {
187 /* Strip any leading space */
189 for (varlist; isspace(varlist[0]); varlist++); 188 for (varlist; isspace(varlist[0]); varlist++);
189
190 if (strncmp(name, varlist, strlen(name)) == 0) { 190 if (strncmp(name, varlist, strlen(name)) == 0) {
191 varlist += strlen(name); 191 varlist += strlen(name);
192 /* strip trailing spaces */ 192 /* strip trailing spaces */