mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
a410bdd96f
commit
c1f7b619d3
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||||
|
|
|
@ -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++;
|
||||||
|
|
Loading…
Reference in a new issue