Prevented possible NULL pointer dereference. Coverity CID 28724.

This commit is contained in:
Thomas Schmitt 2015-11-10 09:09:24 +00:00
parent e1c44a464a
commit a851713a06
2 changed files with 3 additions and 1 deletions

View File

@ -2609,6 +2609,8 @@ ex:;
int Xorriso__wait_chunk_md5(struct xorriso_md5_state *state, int Xorriso__wait_chunk_md5(struct xorriso_md5_state *state,
int u_wait, int flag) int u_wait, int flag)
{ {
if(state->chunk_state == NULL)
return(1);
while(state->chunk_state[state->chunk_w_idx] == 1) { while(state->chunk_state[state->chunk_w_idx] == 1) {
/* >>> have a timeout ? */; /* >>> have a timeout ? */;

View File

@ -1 +1 @@
#define Xorriso_timestamP "2015.11.10.084903" #define Xorriso_timestamP "2015.11.10.090901"