forked from epics_driver_modules/motorBase
Error check NULL MAXvCntrl pointer
This commit is contained in:
1 parent
aa0a01bd0b
commit
18a9f30ff8
1 file changed
+1
-1
@@ -519,7 +519,7 @@ errorexit: errMessage(-1, "Invalid device directive");
|
||||
break;
|
||||
|
||||
case LOAD_POS:
|
||||
if ((MAXv == true) && (MAXvCntrl->typeID[signal] != PSO) && (MAXvCntrl->fwver > 1.29))
|
||||
if ((MAXv == true) && (MAXvCntrl != NULL) && (MAXvCntrl->typeID[signal] != PSO) && (MAXvCntrl->fwver > 1.29))
|
||||
{
|
||||
long int ref = NINT(parms[0]);
|
||||
long int fdbk = ref;
|
||||
|
||||
Reference in new issue
Block a user