View Single Post
Posts: 61 | Thanked: 43 times | Joined on Aug 2008
#6
You use dir without initializing it.
Change the line
g_dir_open(directory, 0, NULL);
to
dir = g_dir_open(directory, 0, NULL);
 

The Following User Says Thank You to harriva For This Useful Post: