From a6fd776b1dfb3d1a47f74e59f9cb594e3244f2b8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 10 Jan 2017 07:07:17 -0600 Subject: [PATCH] mq_open: Fix wrong type of slash used in quoated character constant. --- fs/mqueue/mq_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;