From 382fa7eba87cd4607b2162438d9f294b8125048e Mon Sep 17 00:00:00 2001 From: Joel Guittet Date: Sat, 25 May 2024 09:03:29 +0200 Subject: [PATCH] utils: fix formatting of an error log --- core/src/mender-utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mender-utils.c b/core/src/mender-utils.c index e6cd764..cb09d07 100755 --- a/core/src/mender-utils.c +++ b/core/src/mender-utils.c @@ -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(®ex); free(output); return NULL; @@ -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(®ex); free(output); return NULL;