Skip to content

Commit

Permalink
doveadm: Fix for previous attempt to make static analyzer happier.
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Feb 20, 2016
1 parent 4e96840 commit 0755a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doveadm/doveadm-cmd.c
Expand Up @@ -64,7 +64,7 @@ const struct doveadm_cmd_ver2* doveadm_cmd_find_ver2(const char *cmd_name,
cptr = cmd->name;
/* cannot reuse i here because this needs be
done more than once */
for(int k=0; cptr != '\0' && i+k < argc; k++) {
for(int k=0; *cptr != '\0' && i+k < argc; k++) {
size_t alen = strlen(argv[i+k]);
/* make sure we don't overstep */
if (strlen(cptr) < alen) break;
Expand Down

0 comments on commit 0755a3b

Please sign in to comment.