diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2009-09-13 20:12:51 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2015-06-26 00:30:15 -0600 |
commit | 41d5d2834b61b1cf23b8cc4ec86348c57ace34fe (patch) | |
tree | b2d6cc60222f2cd29bf538692e7f72cf4b84f5a4 /wrapper/runcom.c | |
parent | aba23c26fabcc7961a55d6526bb28c92fb9c4ecd (diff) |
add detection for unrecognized plugin commands
Diffstat (limited to 'wrapper/runcom.c')
-rw-r--r-- | wrapper/runcom.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wrapper/runcom.c b/wrapper/runcom.c index dd843dc..0e8dad8 100644 --- a/wrapper/runcom.c +++ b/wrapper/runcom.c @@ -37,6 +37,9 @@ main ( int argc, char *argv[] ) if (argc > 1) { struct plugin_command_list *list; list=plugin_find_commands(plugins,argv[1]); + if (list==NULL) + error(EXIT_FAILURE,0,"unrecognized command `%s'", + argv[1]); struct plugin_command *root; root=plugin_depend_list(list,plugins); plugin_free_list(list); |