diff --git a/fs/mqueue/mq_open.c b/fs/mqueue/mq_open.c index a36497ed46..8a182bb349 100644 --- a/fs/mqueue/mq_open.c +++ b/fs/mqueue/mq_open.c @@ -100,7 +100,7 @@ mqd_t mq_open(FAR const char *mq_name, int oflags, ...) /* Make sure that a non-NULL name is supplied */ - if (mq_name == NULL || *mq_name == '/0') + if (mq_name == NULL || *mq_name == '\0') { errcode = EINVAL; goto errout;