fix warning from -Wuninitialized

This commit is contained in:
Paolo Bonzini
2011-09-21 11:59:54 +02:00
parent c940381b59
commit a1975e90f6
3 changed files with 9 additions and 1 deletions

View File

@@ -188,6 +188,9 @@ iscsi_login_add_headerdigest(struct iscsi_context *iscsi, struct iscsi_pdu *pdu)
case ISCSI_HEADER_DIGEST_CRC32C:
str = (char *)"HeaderDigest=CRC32C";
break;
default:
iscsi_set_error(iscsi, "invalid header digest value");
return -1;
}
if (iscsi_pdu_add_data(iscsi, pdu, (unsigned char *)str, strlen(str)+1)