if (!(memo = find_memo(user, cmd, ma, argv[1], &memoid)))
return 0;
- if (argv[2]) {
+ if (argc > 2) {
char *argtwo = argv[2];
while (*argtwo) {
switch (*argtwo) {
struct handle_info *hi;
option_func_t *opt;
+ if (argc < 2)
+ return 0;
+
if (!(hi = get_victim_oper(cmd, user, argv[1])))
return 0;