diff --git a/src/iocsh/iocsh.cpp b/src/iocsh/iocsh.cpp index 616f1348c..053cbf8e1 100644 --- a/src/iocsh/iocsh.cpp +++ b/src/iocsh/iocsh.cpp @@ -163,8 +163,8 @@ void epicsShareAPI iocshRegisterVariable (const iocshVarDef *piocshVarDef) l->next = n; } n->pVarDef = piocshVarDef; - iocshTableUnlock (); } + iocshTableUnlock (); } /*