Code

Misplaced comment
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Thu, 21 Aug 2008 04:22:46 +0000 (04:22 +0000)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Thu, 21 Aug 2008 04:22:46 +0000 (04:22 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2037 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_ntp_peer.c

index 73ba8990b64c33c6907c0de44c84b2d03eac3317..6963fde56fa7587ab4bb82e203b1a7a6ee29b6ab 100644 (file)
@@ -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 */