Skip to content

Commit

Permalink
utils: fix formatting of an error log
Browse files Browse the repository at this point in the history
  • Loading branch information
joelguittet committed May 25, 2024
1 parent 452d5b0 commit 8c3271d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mender-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ mender_utils_str_replace(char *input, char *search, char *replace) {

/* Reallocate output memory */
if (NULL == (tmp = (char *)realloc(output, index + strlen(replace) + 1))) {
mender_log_error(NULL, "Unable to allocate memory");
mender_log_error("Unable to allocate memory");
regfree(&regex);
free(output);
return NULL;
Expand All @@ -221,7 +221,7 @@ mender_utils_str_replace(char *input, char *search, char *replace) {
/* Reallocate output memory */
char *tmp = (char *)realloc(output, index + (strlen(input) - previous_match_finish) + 1);
if (NULL == tmp) {
mender_log_error(NULL, "Unable to allocate memory");
mender_log_error("Unable to allocate memory");
regfree(&regex);
free(output);
return NULL;
Expand Down

0 comments on commit 8c3271d

Please sign in to comment.