Skip to content

Commit

Permalink
Check for empty string instead
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Oct 31, 2023
1 parent 4679e9a commit 58eb19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/hsdis/binutils/hsdis-binutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ static void setup_app_data(struct hsdis_app_data* app_data,
app_data->printf_stream,
app_data->printf_callback,
native_bfd,
/* On PowerPC we get warnings, if we pass empty options */
(caller_options == NULL) ? NULL : app_data->insn_options);
/* On some archs we get warnings, if we pass empty options */
(app_data->insn_options[0] == '\0') ? NULL : app_data->insn_options);

/* Finish linking together the various callback blocks. */
app_data->dinfo.application_data = (void*) app_data;
Expand Down

0 comments on commit 58eb19b

Please sign in to comment.