gst/gstvalue.c: Allow NULL-strings as argument (#165365).

Original commit message from CVS:
Reviewed by:  Ronald S. Bultje  <rbultje@ronald.bitfreak.net>
* gst/gstvalue.c: (gst_string_wrap):
Allow NULL-strings as argument (#165365).
This commit is contained in:
Ronald S. Bultje 2005-01-28 09:37:41 +00:00
parent a410bdd96f
commit c1f7b619d3
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2005-01-28 Edward Hervey <bilboed@bilboed.com>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/gstvalue.c: (gst_string_wrap):
Allow NULL-strings as argument (#165365).
2005-01-27 Stephane Wirtel <stephane.wirtel@belgacom.net> 2005-01-27 Stephane Wirtel <stephane.wirtel@belgacom.net>
Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>

View file

@ -1241,6 +1241,8 @@ gst_string_wrap (const char *s)
len = 0; len = 0;
t = s; t = s;
if (!s)
return g_strdup ("");
while (*t) { while (*t) {
if (GST_ASCII_IS_STRING (*t)) { if (GST_ASCII_IS_STRING (*t)) {
len++; len++;