mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-11 16:21:12 +00:00
Fix some code in rp.c to make cppcheck happy
This commit is contained in:
parent
0cd39ab963
commit
fbcd899a34
4
src/rp.c
4
src/rp.c
@ -479,10 +479,10 @@ int kernel_rule_to_cpu_rule (char *rule_buf, kernel_rule_t *rule)
|
||||
u32 rule_pos;
|
||||
u32 rule_len = HCBUFSIZ_LARGE - 1; // maximum possible len
|
||||
|
||||
char rule_cmd;
|
||||
|
||||
for (rule_cnt = 0, rule_pos = 0; rule_pos < rule_len && rule_cnt < MAX_KERNEL_RULES; rule_pos++, rule_cnt++)
|
||||
{
|
||||
char rule_cmd;
|
||||
|
||||
GET_NAME (rule);
|
||||
|
||||
if (rule_cnt > 0) rule_buf[rule_pos++] = ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user