Skip to content

Commit

Permalink
Merge pull request #912 from Hatsumi-FR/fix/redefinition-of-tmp
Browse files Browse the repository at this point in the history
Fix "make" error
  • Loading branch information
vanhauser-thc authored Dec 5, 2023
2 parents fb090d4 + 15b1f93 commit 02e0c8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hydra-http-form.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ char *stringify_headers(ptr_header_node *ptr_head) {
}

int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
char *ptr, *ptr2;
char *ptr, *ptr2, *tmp;

if (miscptr == NULL)
return 1;
Expand Down Expand Up @@ -440,15 +440,15 @@ int32_t parse_options(char *miscptr, ptr_header_node *ptr_head) {
break;
case '1':
code_401_is_failure = 1;
char *tmp = strchr(miscptr, ':');
*tmp = strchr(miscptr, ':');
if (tmp)
miscptr = tmp + 1;
else
miscptr += strlen(miscptr);
break;
case '2':
code_302_is_success = 1;
char *tmp = strchr(miscptr, ':');
*tmp = strchr(miscptr, ':');
if (tmp)
miscptr = tmp + 1;
else
Expand Down

0 comments on commit 02e0c8c

Please sign in to comment.