commands: Fix usage of arrow in assign

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
This commit is contained in:
Quentin Glidic 2016-01-23 18:43:39 +01:00
parent 06f6552eed
commit 43483d8fee

View file

@ -169,7 +169,10 @@ static struct cmd_results *cmd_assign(int argc, char **argv) {
char *criteria = *argv++;
if (strncmp(*argv, "", 1) == 0) {
if (strncmp(*argv, "", strlen("")) == 0) {
if (argc < 3) {
return cmd_results_new(CMD_INVALID, "assign", "Missing workspace");
}
argv++;
}