Moved variable definition into its proper ifdef case. Coverity CID 28702.
This commit is contained in:
parent
1e0af47126
commit
a23bd24945
@ -324,11 +324,12 @@ int Xorriso_dialog_input(struct XorrisO *xorriso, char line[], int linesize,
|
||||
bit5= write to history in any case (if it is enabled at compile time)
|
||||
*/
|
||||
{
|
||||
char *cpt= NULL, **argv= NULL, *linept, *why_append= "";
|
||||
char **argv= NULL, *linept, *why_append= "";
|
||||
int ret, argc= 0, base_length= 0, l, append_line;
|
||||
#ifdef Xorriso_with_line_editoR
|
||||
static char last_input[SfileadrL]= {""};
|
||||
int no_history= 0;
|
||||
char *cpt= NULL;
|
||||
#endif /* Xorriso_with_line_editoR */
|
||||
double tdiff;
|
||||
struct timeval tv;
|
||||
@ -478,8 +479,12 @@ put_into_history:;
|
||||
|
||||
ret= 1;
|
||||
ex:;
|
||||
|
||||
#ifdef Xorriso_with_line_editoR
|
||||
if(cpt!=NULL)
|
||||
free(cpt);
|
||||
#endif
|
||||
|
||||
gettimeofday(&tv,&tz);
|
||||
xorriso->idle_time+= tv.tv_sec+(1.e-6*(double) tv.tv_usec)-tdiff;
|
||||
return(ret);
|
||||
|
@ -1 +1 @@
|
||||
#define Xorriso_timestamP "2015.11.08.140544"
|
||||
#define Xorriso_timestamP "2015.11.08.143244"
|
||||
|
Loading…
Reference in New Issue
Block a user