Prevented use of uninitialized variable in case of memory shortage. Coverity CID 28806.
This commit is contained in:
parent
0aad592dca
commit
cc2d7941a1
@ -4381,6 +4381,9 @@ int Xorriso_named_pipe_loop(struct XorrisO *xorriso,
|
|||||||
"standard input", "standard output", "standard error" };
|
"standard input", "standard output", "standard error" };
|
||||||
char mem_text[80], limit_text[80];
|
char mem_text[80], limit_text[80];
|
||||||
|
|
||||||
|
for(i= 0; i < 3; i++ )
|
||||||
|
mem_fds[i]= pipe_fds[i]= -1;
|
||||||
|
|
||||||
if(xorriso->tolerate_stdin_eof) {
|
if(xorriso->tolerate_stdin_eof) {
|
||||||
sprintf(xorriso->info_text,
|
sprintf(xorriso->info_text,
|
||||||
"Already in -named_pipe_loop. Ignoring further -named_pipe_loop command.");
|
"Already in -named_pipe_loop. Ignoring further -named_pipe_loop command.");
|
||||||
@ -4389,8 +4392,6 @@ int Xorriso_named_pipe_loop(struct XorrisO *xorriso,
|
|||||||
}
|
}
|
||||||
|
|
||||||
Xorriso_alloc_meM(line, char, SfileadrL);
|
Xorriso_alloc_meM(line, char, SfileadrL);
|
||||||
for(i= 0; i < 3; i++ )
|
|
||||||
mem_fds[i]= pipe_fds[i]= -1;
|
|
||||||
|
|
||||||
/* Memorize stdin, stdout, and stderr. Close originals. */
|
/* Memorize stdin, stdout, and stderr. Close originals. */
|
||||||
for(i= 0; i < 3; i++ ) {
|
for(i= 0; i < 3; i++ ) {
|
||||||
|
@ -1 +1 @@
|
|||||||
#define Xorriso_timestamP "2015.11.06.124252"
|
#define Xorriso_timestamP "2015.11.06.124702"
|
||||||
|
Loading…
Reference in New Issue
Block a user