aboutsummaryrefslogtreecommitdiffstats
path: root/cg-limits.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-09-16 16:20:50 +0200
committerMattias Andrée <maandree@kth.se>2021-09-16 16:20:50 +0200
commit1acb6e3c8941de5715e7008503a4c8a699873a3b (patch)
tree2a53d3507cab019494dd407ea18b2eefeb4a78c4 /cg-limits.c
parentAdd KNOWN_ISSUES (diff)
downloadcg-tools-1acb6e3c8941de5715e7008503a4c8a699873a3b.tar.gz
cg-tools-1acb6e3c8941de5715e7008503a4c8a699873a3b.tar.bz2
cg-tools-1acb6e3c8941de5715e7008503a4c8a699873a3b.tar.xz
Improve makefile and fix bug in cg-limits1.4.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'cg-limits.c')
-rw-r--r--cg-limits.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cg-limits.c b/cg-limits.c
index 8f596f2..1048e13 100644
--- a/cg-limits.c
+++ b/cg-limits.c
@@ -362,13 +362,13 @@ parse_conf_file(const char *restrict pathname, char ***restrict names,
*b++ = '\0';
q = strpbrk(r, " \t");
- if (!q)
+ if (q)
*q = '\0';
q = strpbrk(g, " \t");
- if (!q)
+ if (q)
*q = '\0';
q = strpbrk(b, " \t");
- if (!q)
+ if (q)
*q = '\0';
q = strchr(p, '\0');