From 8b1e6327f5067b99be1654bfb00b0419080c6139 Mon Sep 17 00:00:00 2001 From: Giovanni <561184+wargio@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:28:55 +0800 Subject: [PATCH] use RZ_STR_ISNOTEMPTY --- librz/core/cbin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/core/cbin.c b/librz/core/cbin.c index d82e047e0b5..92647cd57a7 100644 --- a/librz/core/cbin.c +++ b/librz/core/cbin.c @@ -1854,7 +1854,7 @@ RZ_API void rz_core_bin_print_source_line_info(RzCore *core, const RzBinSourceLi } static const char *bin_reloc_type_name(RzBinReloc *reloc) { - if (reloc->print_name != NULL) { + if (RZ_STR_ISNOTEMPTY(reloc->print_name)) { return reloc->print_name; } #define CASE(T) \