Skip gracefully over empty lines in grid map
authorZdeněk Šustr <sustr4@cesnet.cz>
Fri, 31 Aug 2012 07:21:24 +0000 (07:21 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Fri, 31 Aug 2012 07:21:24 +0000 (07:21 +0000)
org.glite.lb.server/src/lb_authz.c

index 73b4bef..ce9e53b 100644 (file)
@@ -1312,6 +1312,8 @@ parse_gridmap(edg_wll_Context ctx,
        if (p)
            *p = '\0';
 
+       if(strlen(line) == strspn(line, " \t")) continue;
+
        p = line;
        while(p && *p == ' ')
            p++;