Return value of header_aget_value() was always 0. Made it consistent with that o…
…f header_get_value(). Same for header_aget_field_value().
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -521,7 +521,7 @@ header_aget_value (header_t header, const char *name, char **pvalue) | ... | @@ -521,7 +521,7 @@ header_aget_value (header_t header, const char *name, char **pvalue) |
521 | } | 521 | } |
522 | else | 522 | else |
523 | *pvalue = strdup (""); | 523 | *pvalue = strdup (""); |
524 | return 0; | 524 | return status; |
525 | } | 525 | } |
526 | 526 | ||
527 | int | 527 | int |
... | @@ -598,7 +598,7 @@ header_aget_field_name (header_t header, size_t num, char **pvalue) | ... | @@ -598,7 +598,7 @@ header_aget_field_name (header_t header, size_t num, char **pvalue) |
598 | } | 598 | } |
599 | else | 599 | else |
600 | *pvalue = strdup (""); | 600 | *pvalue = strdup (""); |
601 | return 0; | 601 | return status; |
602 | } | 602 | } |
603 | 603 | ||
604 | int | 604 | int | ... | ... |
-
Please register or sign in to post a comment