Bug 554970 – segfault when update-desktop-database is not available

2008-10-05  Pascal Terjan  <pterjan@linuxfr.org>

	Bug 554970 – segfault when update-desktop-database is not available
	on the system

	* gdesktopappinfo.c (run_update_command): Have the error set before 
	using it.


svn path=/branches/glib-2-18/; revision=7569
This commit is contained in:
Pascal Terjan
2008-10-05 00:31:00 +00:00
committed by Pascal Terjan
parent 48c238a6e9
commit 106f91acd1
2 changed files with 9 additions and 1 deletions

View File

@@ -1,3 +1,11 @@
2008-10-05 Pascal Terjan <pterjan@linuxfr.org>
Bug 554970 segfault when update-desktop-database is not available
on the system
* gdesktopappinfo.c (run_update_command): Have the error set before
using it.
2008-09-30 Tor Lillqvist <tml@novell.com>
* glocalfile.c (get_volume_for_path) [Win32]: Avoid a

View File

@@ -1322,7 +1322,7 @@ run_update_command (char *command,
G_SPAWN_DO_NOT_REAP_CHILD,
NULL, NULL, /* No setup function */
&pid,
NULL))
&error))
g_child_watch_add (pid, update_program_done, NULL);
else
{