aboutsummaryrefslogtreecommitdiffstats
path: root/pulsemix.c
diff options
context:
space:
mode:
Diffstat (limited to 'pulsemix.c')
-rw-r--r--pulsemix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pulsemix.c b/pulsemix.c
index 71edd3a..c972f49 100644
--- a/pulsemix.c
+++ b/pulsemix.c
@@ -743,8 +743,7 @@ int main(int argc, char *argv[])
errx(EXIT_FAILURE, "missing value for action '%s'", argv[optind - 1]);
else {
/* validate to number */
- int r = xstrtol(argv[optind], &value);
- if (r < 0)
+ if (xstrtol(argv[optind], &value) < 0)
errx(EXIT_FAILURE, "invalid number: %s", argv[optind]);
}
else if (verb == ACTION_SETDEFAULT) {