Skip to content

Commit

Permalink
[gcc -fanalyzer] pcmanfm.c: Fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
wandrien committed Nov 19, 2023
1 parent 74fdcf4 commit fd74deb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pcmanfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static void unix_signal_handler(int sig_num)
/* postpond the signal handling by using a pipe */
if (write(signal_pipe[1], &sig_num, sizeof(sig_num)) != sizeof(sig_num)) {
g_critical("cannot bounce the signal, stop");
exit(2);
_exit(2);
}
}

Expand Down Expand Up @@ -293,8 +293,7 @@ gboolean pcmanfm_run(gint screen_num)
if(cwd)
fm_path_unref(cwd);
fm_launch_paths_simple(NULL, NULL, paths, pcmanfm_open_folder, NULL);
g_list_foreach(paths, (GFunc)fm_path_unref, NULL);
g_list_free(paths);
g_list_free_full(paths, (GDestroyNotify) fm_path_unref);
ret = (n_pcmanfm_ref >= 1); /* if there is opened window, return true to run the main loop. */

g_strfreev(files_to_open);
Expand Down

0 comments on commit fd74deb

Please sign in to comment.