summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/ngctl/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ngctl/main.c b/usr.sbin/ngctl/main.c
index 9668fbe..5e9411c 100644
--- a/usr.sbin/ngctl/main.c
+++ b/usr.sbin/ngctl/main.c
@@ -363,9 +363,11 @@ ReadCmd(int ac, char **av)
/* Open file */
switch (ac) {
case 2:
- if ((fp = fopen(av[1], "r")) == NULL)
+ if ((fp = fopen(av[1], "r")) == NULL) {
warn("%s", av[1]);
- return(CMDRTN_ERROR);
+ return(CMDRTN_ERROR);
+ }
+ break;
default:
return(CMDRTN_USAGE);
}
OpenPOWER on IntegriCloud