dtcudcfonted: Resolve compiler and coverity warnings

This commit is contained in:
Peter Howkins
2018-03-28 01:29:28 +01:00
parent 49d1ca38e4
commit 55c59be795
16 changed files with 127 additions and 115 deletions

View File

@@ -549,7 +549,7 @@ char *style ;
{
if ( gpfinf->in_file == '\0' && xlfdname == '\0' ) {
if ( gpfinf->in_file == NULL && xlfdname == NULL ) {
if ( code_area & SYSTM ) {
USAGE1("%s : The GPF output file name cannot be omitted.\n", com );
} else { /* string of charcter size */
@@ -703,6 +703,7 @@ int type ;
close( pfd[1] );
close( 1 );
if( dup( out_fd ) < 0 ) {
close( out_fd );
return DUP_ERROR;
}
close( out_fd );