summaryrefslogtreecommitdiffstats
path: root/commands/of_node.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/of_node.c')
-rw-r--r--commands/of_node.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/of_node.c b/commands/of_node.c
index 2f6ecae33e..171ea2ce4c 100644
--- a/commands/of_node.c
+++ b/commands/of_node.c
@@ -54,6 +54,9 @@ static int do_of_node(int argc, char *argv[])
}
}
+ if (optind == argc)
+ return COMMAND_ERROR_USAGE;
+
if (optind < argc) {
path = argv[optind];
}