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=/trunk/; revision=7570
This commit is contained in:
Pascal Terjan 2008-10-05 00:33:43 +00:00 committed by Pascal Terjan
parent aa7e065688
commit d8b489853c
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-10-01 David Zeuthen <davidz@redhat.com>
* gdesktopappinfo.c (expand_macro): If possible, always pass FUSE

View File

@ -1400,7 +1400,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
{