1
0
mirror of https://github.com/open-simh/simh.git synced 2026-01-17 16:54:08 +00:00

Various VAX: Mark Coverity False Positive for boot command parsing

This commit is contained in:
Mark Pizzolato 2017-03-30 19:20:48 -07:00
parent 8344225aef
commit 680ad4f239
5 changed files with 5 additions and 0 deletions

View File

@ -403,6 +403,7 @@ else { /* handle "BOOT DEV /R5:
}
/* parse R5 parameter value */
r5v = 0;
/* coverity[NULL_RETURNS] */
if ((strncmp (regptr, "/R5:", 4) == 0) ||
(strncmp (regptr, "/R5=", 4) == 0) ||
(strncmp (regptr, "/r5:", 4) == 0) ||

View File

@ -513,6 +513,7 @@ else
ba = dibp->ba;
unitno = (int32) (uptr - dptr->units);
r5v = 0;
/* coverity[NULL_RETURNS] */
if ((strncmp (regptr, "/R5:", 4) == 0) ||
(strncmp (regptr, "/R5=", 4) == 0) ||
(strncmp (regptr, "/r5:", 4) == 0) ||

View File

@ -649,6 +649,7 @@ else { /* handle "BOOT DEV /R5:
}
/* parse R5 parameter value */
r5v = 0;
/* coverity[NULL_RETURNS] */
if ((strncmp (regptr, "/R5:", 4) == 0) ||
(strncmp (regptr, "/R5=", 4) == 0) ||
(strncmp (regptr, "/r5:", 4) == 0) ||

View File

@ -665,6 +665,7 @@ else
ba = dibp->ba;
unitno = (int32) (uptr - dptr->units);
r5v = 0;
/* coverity[NULL_RETURNS] */
if ((strncmp (regptr, "/R5:", 4) == 0) ||
(strncmp (regptr, "/R5=", 4) == 0) ||
(strncmp (regptr, "/r5:", 4) == 0) ||

View File

@ -729,6 +729,7 @@ else
ba = dibp->ba;
unitno = (int32) (uptr - dptr->units);
r5v = 0;
/* coverity[NULL_RETURNS] */
if ((strncmp (regptr, "/R5:", 4) == 0) ||
(strncmp (regptr, "/R5=", 4) == 0) ||
(strncmp (regptr, "/r5:", 4) == 0) ||