libgnome r3795 - in trunk: . libgnome
- From: kmaraas svn gnome org
- To: svn-commits-list gnome org
- Subject: libgnome r3795 - in trunk: . libgnome
- Date: Thu, 28 Aug 2008 09:00:06 +0000 (UTC)
Author: kmaraas
Date: Thu Aug 28 09:00:06 2008
New Revision: 3795
URL: http://svn.gnome.org/viewvc/libgnome?rev=3795&view=rev
Log:
2008-08-28 Kjartan Maraas <kmaraas gnome org>
* libgnome/gnome-program.c: (gnome_program_init_paramv):
Patch from OpenSUSE to fix uninitialized var. Closes
bug #543570. (Rodrigo Moya)
Modified:
trunk/ChangeLog
trunk/libgnome/gnome-program.c
Modified: trunk/libgnome/gnome-program.c
==============================================================================
--- trunk/libgnome/gnome-program.c (original)
+++ trunk/libgnome/gnome-program.c Thu Aug 28 09:00:06 2008
@@ -2137,9 +2137,12 @@
int argc, char **argv,
guint nparams, GParameter *params)
{
- va_list args;
-
- return gnome_program_init_common (type, app_id, app_version, module_info,
- argc, argv, NULL, args, nparams, params);
+ va_list empty_va;
+ GnomeProgram *ret;
+ va_start(empty_va, params);
+ ret = gnome_program_init_common(type, app_id, app_version, module_info,
+ argc, argv, NULL, empty_va, nparams, params);
+ va_end(empty_va);
+ return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]