ap

An audio player suited to my tastes
Log | Files | Refs | README | LICENSE

commit 7b1b114209843fc07097a4c144cef5c633cec070
parent ad78c8e8c299f71aacb4d4e9d8cbf2b49c1276fe
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Fri, 16 Jul 2021 16:58:09 -0700

Improve arglen efficiency

Diffstat:
Maps/arg.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/aps/arg.c b/aps/arg.c @@ -26,7 +26,9 @@ arglen(char **args) { unsigned int i; - for (i = 0; args && args[i] != NULL; ++i) + if (args == NULL) + return 0; + for (i = 0; args[i] != NULL; ++i) ; return i; }