GNOME Bugzilla – Bug 320476
segmentation fault if you want to get file information without initialized GnomeVFSFileInfo
Last modified: 2005-11-08 11:22:57 UTC
Distribution/Version: gentoo If you want to use the function gnome_vfs_get_file_info_uri() you have to provide the uri and the GnomeVFSFileInfo. If you forget to initialize the GnomeVFSFileInfo field with the method gnome_vfs_file_info_new () you got an segmentation fault. To avoid this, I have created a patch against gnome-vfs-cancellable-ops.c file where I have added a g_return_val_if_fail call to inform the developer (and user) that something is wrong but no more segmentation fault. In this way we don't need to update the documentation but it would be fine to add an hint that the developer has to initialize the GnomeVFSFileInfo field.
Created attachment 54213 [details] [review] added g_return_if_fail method for the given info field
Commited. Thanks.