Commit dff22d9c authored by Malenovsky, Vladimir's avatar Malenovsky, Vladimir
Browse files

check uninitialized parser params against NULL instead of an empty string

parent 04603fc2
Loading
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 );
            }