Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | # Fix crash with gst-inspect |
| 2 | # Chris Lord <chris@openedhand.com> |
| 3 | |
| 4 | Upstream-Status: Pending |
| 5 | |
| 6 | --- gstreamer-0.10.9/tools/gst-inspect.c.old 2006-09-12 11:56:53.000000000 +0100 |
| 7 | +++ gstreamer-0.10.9/tools/gst-inspect.c 2006-09-12 11:57:27.000000000 +0100 |
| 8 | @@ -1123,7 +1123,7 @@ |
| 9 | g_option_context_add_main_entries (ctx, options, GETTEXT_PACKAGE); |
| 10 | g_option_context_add_group (ctx, gst_init_get_option_group ()); |
| 11 | if (!g_option_context_parse (ctx, &argc, &argv, &err)) { |
| 12 | - g_print ("Error initializing: %s\n", err->message); |
| 13 | + g_print ("Error initializing: %s\n", err ? err->message : "(null)"); |
| 14 | exit (1); |
| 15 | } |
| 16 | g_option_context_free (ctx); |