Typo error on gtk_file_selection_get_filename()



hi all,
i know this isn't the right place, however i discovered a trivial error
on
gtk_file_selection_get_filename() (current 1.3.2 CVS):
line 762 at gtkfilesel.c: 
if (text)
    {
      sys_filename = g_filename_from_utf8 (cmpl_completion_fullname
(text, filesel->cmpl_state), -1, NULL, NULL, NULL);

      if (sys_filename) // <== should be: !sys_filename since
g_filename_from_utf8()
			// returns NULL on error.
	return nothing;

      strncpy (something, sys_filename, sizeof (something));
      g_free (sys_filename);
      return something;
    }

have fun.
/mario
-- 
Mario Motta
AI Research Group - Rimini
http://vdkbuilder.sourceforge.net






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]