Kaydet (Commit) cb164b1d authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: arrayIndexThenCheck

Change-Id: I66dc4dd095d4e1a9d963b1c2c6a99b16d9f9bf61
üst 85e14be2
......@@ -158,7 +158,7 @@ SECU_FilePasswd(PK11SlotInfo *slot, PRBool retry, void *arg)
int phraseLen;
/* handle the Windows EOL case */
while (phrases[i] != '\r' && phrases[i] != '\n' && i < nb) i++;
while (i < nb && phrases[i] != '\r' && phrases[i] != '\n') i++;
/* terminate passphrase */
phrases[i++] = '\0';
/* clean up any EOL before the start of the next passphrase */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment