Skip to content

Commit

Permalink
Small code improvement in "wb_project_dir_rescan_int()".
Browse files Browse the repository at this point in the history
  • Loading branch information
lpaulsen93 committed Aug 19, 2017
1 parent 7574055 commit 00b8941
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions workbench/src/wb_project.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,8 @@ static gint wb_project_dir_rescan_int(WB_PROJECT *prj, WB_PROJECT_DIR *root)

if (!root->file_patterns || !root->file_patterns[0])
{
gchar **all_pattern = g_strsplit ("*", " ", -1);
pattern_list = get_precompiled_patterns(all_pattern);
g_strfreev(all_pattern);
const gchar *all_pattern[] = { "*", NULL };
pattern_list = get_precompiled_patterns((gchar **)all_pattern);
}
else
{
Expand Down

0 comments on commit 00b8941

Please sign in to comment.