summaryrefslogtreecommitdiff
path: root/nuttx/graphics/nxconsole/nxcon_register.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/graphics/nxconsole/nxcon_register.c')
-rw-r--r--nuttx/graphics/nxconsole/nxcon_register.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nuttx/graphics/nxconsole/nxcon_register.c b/nuttx/graphics/nxconsole/nxcon_register.c
index 3eea4e67a..cadda7394 100644
--- a/nuttx/graphics/nxconsole/nxcon_register.c
+++ b/nuttx/graphics/nxconsole/nxcon_register.c
@@ -99,6 +99,10 @@ FAR struct nxcon_state_s *
memcpy(&priv->wndo, wndo, sizeof( struct nxcon_window_s));
sem_init(&priv->exclsem, 0, 1);
+#ifdef CONFIG_DEBUG
+ priv->holder = NO_HOLDER;
+#endif
+
#ifdef CONFIG_NXCONSOLE_NXKBDIN
sem_init(&priv->waitsem, 0, 0);
#endif