aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libsbus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsbus.c b/libsbus.c
index 5b238c8..88e6a31 100644
--- a/libsbus.c
+++ b/libsbus.c
@@ -74,7 +74,7 @@ libsbus_receive(int fd, int flags, char *buf, union libsbus_packet *packet)
if (r >= 4 && !strncmp(buf, "MSG ", 4)) {
p = memchr(buf, '\0', r);
- if (!*p++)
+ if (!p++)
goto unknown;
packet->type = LIBSBUS_MESSAGE;
packet->message.key = &buf[4];