GNOME Bugzilla – Bug 530086
Infinite loop with g_file_get_parent for root dummy files
Last modified: 2008-04-27 20:24:23 UTC
Root dummy files (i.e. with path "/") do not return NULL, but themself. This breaks code like while (file = get_parent (file)) { ... }
Created attachment 109955 [details] [review] Proposed patch
This is a dupe of bug 528600, however this patch is likely valid too, and is simpler. My fix was just copied from GVFS (http://bugzilla.gnome.org/attachment.cgi?id=109496&action=view). So I'm closing this as a dupe, but we should move this patch over to that bug too. *** This bug has been marked as a duplicate of 528600 ***