Improve a debug assertion

This commit is contained in:
Gregory Nutt 2016-07-05 09:50:54 -06:00
parent f1cf6731eb
commit 3b825b3e00
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ static inline ssize_t syslog_dev_write(FAR const void *buf, size_t nbytes)
/* Let the driver perform the write */ /* Let the driver perform the write */
inode = g_syslog_dev.sl_file.f_inode; inode = g_syslog_dev.sl_file.f_inode;
DEBUGASSERT(inode != NULL); DEBUGASSERT(inode != NULL && inode->u.i_ops->write != NULL);
return inode->u.i_ops->write(&g_syslog_dev.sl_file, buf, nbytes); return inode->u.i_ops->write(&g_syslog_dev.sl_file, buf, nbytes);
} }