]> Kevux Git Server - fll/commit
Cleanup: Change structure of fll_execute_program() checks.
authorKevin Day <thekevinday@gmail.com>
Thu, 10 Aug 2023 04:31:26 +0000 (23:31 -0500)
committerKevin Day <thekevinday@gmail.com>
Thu, 10 Aug 2023 04:31:26 +0000 (23:31 -0500)
commitf6725366474492f1b7baabba7938854f6e6412eb
treebc916c48e878cb639b43a1903a1e0a0ddf79317d
parent1b43ceefc20836137ed95e19d275dda44d8a678d
Cleanup: Change structure of fll_execute_program() checks.

This is a follow up to the commit 1b43ceefc20836137ed95e19d275dda44d8a678d.

The previous commit is passing NULL to strrchr().
This should be fine, but does produce a warning.

Clean up the code and play it safe by changing the design to only call strrchr() when the value passed would be non-NULL.
level_2/fll_execute/c/execute.c