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

@@ -220,7 +220,7 @@ char *argv[];
exit( 1 );
}
if ( ReadSnf.in_file == '\0' && xlfdname == '\0' ) {
if ( ReadSnf.in_file == NULL && xlfdname == NULL ) {
if ( code_area & SYSTM ) {
USAGE1("%s : The GPF output file name cannot be omitted.\n", argv[0] );
} else { /* string of charcter size */
@@ -526,6 +526,7 @@ int init_all;
close( pfd[1] );
close( 1 );
if( dup( ofd ) < 0 ) {
close( ofd );
return DUP_ERROR;
}
close( ofd );