summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b261735)
raw | patch | inline | side by side (parent: b261735)
author | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 13:01:06 +0000 (14:01 +0100) | ||
committer | Max Kellermann <max@duempel.org> | |
Fri, 7 Nov 2008 13:01:06 +0000 (14:01 +0100) |
The pointer has already been checked for NULL, eliminate that check.
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index 6a0336349b14408d3a3a912003c364f267f1097d..1e65cfeb8bf16145b6415dfb2737ae2a28e690fa 100644 (file)
--- a/src/main.c
+++ b/src/main.c
if ((p = strchr(msg, '}')) == NULL)
return msg;
- while (p && *p && (*p=='}' || *p==' '))
+ do {
p++;
+ } while (*p == '}' || * p== ' ');
return p;
}