xfce4-menueditor crashes when saving

Jean-François Wauthy pollux at xfce.org
Sun Aug 13 12:17:39 CEST 2006


Le samedi 12 août 2006 à 23:58 -0300, LaPeq FCI a écrit :
> But looking at the source code I've found something strange under the
> menueditor-main-window.c in the funciont
> 
> static gboolean save_treeview_in_file (MenuEditorMainWindow *window) (line 1991)
> 
> A fopen is realized and tested with an "if" (line 2001) but no "else"
> is set and the function ever assumes TRUE as a return. What if the
> file could not be opened for example because of permission problems?
> 

In fact the returned value wasn't used :-s, I changed the function to
return void and added a error dialog when the file couldn't be opened
(rev 22742).

-- 
Jean-François Wauthy <pollux at xfce.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Ceci est une partie de message num?riquement sign?e
URL: <http://mail.xfce.org/pipermail/xfce/attachments/20060813/e15cf602/attachment.pgp>


More information about the Xfce mailing list