View | Details | Raw Unified | Return to bug 1956 | Differences between
and this patch

Collapse All | Expand All

(-)sftp.c (-1 / +1 lines)
Lines 1145-1151 Link Here
1145
1145
1146
	/* Figure out which command we have */
1146
	/* Figure out which command we have */
1147
	for (i = 0; cmds[i].c != NULL; i++) {
1147
	for (i = 0; cmds[i].c != NULL; i++) {
1148
		if (strcasecmp(cmds[i].c, argv[0]) == 0)
1148
		if (argv[0] != NULL && strcasecmp(cmds[i].c, argv[0]) == 0)
1149
			break;
1149
			break;
1150
	}
1150
	}
1151
	cmdnum = cmds[i].n;
1151
	cmdnum = cmds[i].n;

Return to bug 1956