Skip to content

Commit

Permalink
fixed static analyzer complain about always wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
giomatfois62 committed Feb 6, 2024
1 parent c573765 commit 50d8ed9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/rofi-icon-fetcher.c
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
// remove uri thumbnail prefix from entry name
gchar *entry_name = &sentry->entry->name[12];

if (entry_name == NULL || strcmp(entry_name, "") == 0) {
if (strcmp(entry_name, "") == 0) {
sentry->query_done = TRUE;
rofi_view_reload();
return;
Expand All @@ -563,7 +563,7 @@ static void rofi_icon_fetcher_worker(thread_state *sdata,
char **command_args = NULL;
int argsv = 0;
char size_str[33];
sprintf(size_str, "%d", thumb_size);
snprintf(size_str, 33, "%d", thumb_size);

helper_parse_setup(
config.preview_cmd, &command_args, &argsv,
Expand Down

0 comments on commit 50d8ed9

Please sign in to comment.