diff --git a/src/config/cmdline.c b/src/config/cmdline.c index 113287f6b..64658485e 100644 --- a/src/config/cmdline.c +++ b/src/config/cmdline.c @@ -234,16 +234,15 @@ remote_cmd(struct option *o, unsigned char ***argv, int *argc) skip_space(arg); argend = strchr(arg, ')'); - } - if (!argend) { - /* Just open any passed URLs in new tabs */ - remote_session_flags |= SES_REMOTE_NEW_TAB; - return NULL; + if (!argend) { + /* Just open any passed URLs in new tabs */ + remote_session_flags |= SES_REMOTE_NEW_TAB; + return NULL; + } + skipback_whitespace(arg, argend); } - skipback_whitespace(arg, argend); - for (method = 0; remote_methods[method].name; method++) { unsigned char *name = remote_methods[method].name;