mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
teletextdec: Use NULL instead of g_strdup('\0')
Which is equivalent to g_strdup(NULL). https://bugzilla.gnome.org/show_bug.cgi?id=759728
This commit is contained in:
parent
f156c65c21
commit
11729cde80
1 changed files with 2 additions and 2 deletions
|
@ -842,7 +842,7 @@ gst_teletextdec_vbi_page_to_text_lines (guint start, guint stop, vbi_page *
|
||||||
|
|
||||||
/* allocate a new NULL-terminated array of strings */
|
/* allocate a new NULL-terminated array of strings */
|
||||||
lines = (gchar **) g_malloc (sizeof (gchar *) * (lines_count + 1));
|
lines = (gchar **) g_malloc (sizeof (gchar *) * (lines_count + 1));
|
||||||
lines[lines_count] = g_strdup ('\0');
|
lines[lines_count] = NULL;
|
||||||
|
|
||||||
/* export each line in the range of the teletext page in text format */
|
/* export each line in the range of the teletext page in text format */
|
||||||
for (i = start; i <= stop; i++) {
|
for (i = start; i <= stop; i++) {
|
||||||
|
@ -945,7 +945,7 @@ gst_teletextdec_export_pango_page (GstTeletextDec * teletext, vbi_page * page,
|
||||||
gint i, j;
|
gint i, j;
|
||||||
|
|
||||||
colors = (gchar **) g_malloc (sizeof (gchar *) * (rows + 1));
|
colors = (gchar **) g_malloc (sizeof (gchar *) * (rows + 1));
|
||||||
colors[rows] = g_strdup ('\0');
|
colors[rows] = NULL;
|
||||||
|
|
||||||
/* parse all the lines and approximate it's foreground color using the first
|
/* parse all the lines and approximate it's foreground color using the first
|
||||||
* non null character */
|
* non null character */
|
||||||
|
|
Loading…
Reference in a new issue