Skip to content

minor fix to the function findProcesses #1

@DmitriiGorelov

Description

@DmitriiGorelov

if( (cbfInternArg.cbfArg.mode & FPROC_RLINK) != 0 )

else if( (cbfInternArg.cbfArg.mode & FPROC_BASENAME) != 0 )

ret = findProcesses( ppArgv[1], onFoundProcess, ppArgv, FPROC_BASENAME | FPROC_RLINK );

These lines do not work together.

You call function foo(A | B),

but inside the function foo() you do
If (A)
{...}
else if (B)
{...}

This means, the function called with (A | B) goes only inside block if (A)
and never inside if (B), because of "else" staying before it.

If the user wants to check both A and B, he has to call such function twice, foo(A); foo(B).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions