chore: fix `clang-tidy` warnings
Fix warnings introduced by previous commit.
Change-Id: I3884f8a774860905ddf3d4554f986fde16ec9919
Signed-off-by: Karl Meakin <karl.meakin@arm.com>
diff --git a/inc/hf/string.h b/inc/hf/string.h
index 35f669b..9d771e6 100644
--- a/inc/hf/string.h
+++ b/inc/hf/string.h
@@ -40,7 +40,7 @@
* Macro to initialize `struct string` from a string constant.
* Triggers a compilation error if the string does not fit into the buffer.
*/
-#define STRING_INIT(str) ((struct string){.data = str})
+#define STRING_INIT(str) ((struct string){.data = (str)})
enum string_return_code string_init(struct string *str,
const struct memiter *data);