diff options
Diffstat (limited to 'cmd.c')
-rw-r--r-- | cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ struct cgit_cmd *cgit_get_cmd(struct cgit_context *ctx) | |||
166 | ctx->qry.page = "repolist"; | 166 | ctx->qry.page = "repolist"; |
167 | } | 167 | } |
168 | 168 | ||
169 | for(i = 0; i < sizeof(cmds)/sizeof(*cmds); i++) | 169 | for (i = 0; i < sizeof(cmds)/sizeof(*cmds); i++) |
170 | if (!strcmp(ctx->qry.page, cmds[i].name)) | 170 | if (!strcmp(ctx->qry.page, cmds[i].name)) |
171 | return &cmds[i]; | 171 | return &cmds[i]; |
172 | return NULL; | 172 | return NULL; |