gst/gstmodule.c: don't crash when error is NULL

Original commit message from CVS:
* gst/gstmodule.c: (init_gst):
don't crash when error is NULL
This commit is contained in:
Thomas Vander Stichele 2006-07-03 13:31:19 +00:00
parent 6992f7de67
commit fc67bb7842
3 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2006-07-03 Thomas Vander Stichele <thomas at apestaart dot org>
* gst/gstmodule.c: (init_gst):
don't crash when error is NULL
2006-07-03 Edward Hervey <edward@fluendo.com>
* gst/gstmessage.override:

2
common

@ -1 +1 @@
Subproject commit a98b370bd49bc3f3225bbd9013cda5a53789f53d
Subproject commit dd173e2720ac21e4a47c97705d7ff32271a0ee66

View file

@ -140,7 +140,7 @@ init_gst (void)
g_free (argv);
}
errstr = g_strdup_printf ("can't initialize module gst: %s",
GST_STR_NULL (error->message));
error ? GST_STR_NULL (error->message) : "no error given");
PyErr_SetString (PyExc_RuntimeError, errstr);
g_free (errstr);
g_error_free (error);