Commit 60a85791 authored by Malenovsky, Vladimir's avatar Malenovsky, Vladimir Committed by Vladimir Malenovsky
Browse files

check uninitialized parser params against NULL instead of an empty string

parent 9229c29e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -469,12 +469,16 @@ static void printUsage(

        if ( opt.isMandatory )
        {
            if ( !isEmptyString( opt.matchShort ) )
            if ( opt.matchShort != NULL )
            {
                fprintf( stderr, " -%s", opt.matchShort );
            }
            else
            {
                fprintf( stderr, " --%s", opt.match );
            }

            if ( !isEmptyString( opt.placeholder ) )
            if ( opt.placeholder != NULL )
            {
                fprintf( stderr, " %s", opt.placeholder );
            }