API change for g_get_current_dir() (#59703)
- From: Alex Larsson <alexl redhat com>
- To: <gtk-devel-list gnome org>, <gnome-hackers gnome org>
- Subject: API change for g_get_current_dir() (#59703)
- Date: Mon, 10 Sep 2001 15:14:57 -0400 (EDT)
g_get_current_dir() currently returns "/" on failure. This is quite
broken, since that is also a valid correct return value. I dicusssed this
a bit woth owen, and we think that the best solution is to add a GError to
the function. Then we would return NULL and set the GError on error.
The advantage of this is that it breaks the compilation of any code that
uses this function, whereas just returning NULL on error would cause apps
This will cause a bit of breakage though, g_get_current_dir() is
references in about 80 files according to lxr.
Do people have strong opinions on this?
gnome-hackers mailing list
gnome-hackers gnome org
] [Thread Prev