mirror of
https://github.com/apache/nuttx.git
synced 2025-12-12 05:34:38 +08:00
mq_open: Fix wrong type of slash used in quoated character constant.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user