From 667eabad0e20af083277191a80668823a45328c6 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Fri, 26 Dec 2014 19:03:13 -0500 Subject: [PATCH] pwmc: Fix --output-fd. --- src/pwmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pwmc.c b/src/pwmc.c index 6b82aab8..494ea564 100644 --- a/src/pwmc.c +++ b/src/pwmc.c @@ -1655,7 +1655,7 @@ main (int argc, char *argv[]) break; case OPT_OUTPUT_FD: outfd = strtol (optarg, &p, 10); - if (!p) + if (!p || !*p) { outfp = fdopen (outfd, "w"); if (!outfp) -- 2.11.4.GIT