summaryrefslogtreecommitdiffstats
path: root/commands/of_property.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/of_property.c')
-rw-r--r--commands/of_property.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/of_property.c b/commands/of_property.c
index 585522c..bd9ff72 100644
--- a/commands/of_property.c
+++ b/commands/of_property.c
@@ -192,6 +192,9 @@ static int do_of_property(int argc, char *argv[])
}
}
+ if (optind == argc)
+ return COMMAND_ERROR_USAGE;
+
root = of_get_root_node();
if (!root) {
printf("root node not set\n");