Commit 62e85e8f authored by Sebastian Dröge's avatar Sebastian Dröge 🍵
Browse files

ext/raw1394/gstdv1394src.c: Replace direct comparison of a string with the...

ext/raw1394/gstdv1394src.c: Replace direct comparison of a string with the string literal "" with a comparison of the...

Original commit message from CVS:
* ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri):
Replace direct comparison of a string with the string literal "" with
a comparison of the first character with '\0'. Fixes #438926.
parent 5daef8a5
2007-05-16 Sebastian Dröge <slomo@circular-chaos.org>
* ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri):
Replace direct comparison of a string with the string literal "" with
a comparison of the first character with '\0'. Fixes #438926.
2007-05-15 Stefan Kost <ensonic@users.sf.net>
* gst/debug/breakmydata.c (gst_break_my_data_init):
......
......@@ -1084,7 +1084,7 @@ gst_dv1394src_uri_set_uri (GstURIHandler * handler, const gchar * uri)
g_free (protocol);
location = gst_uri_get_location (uri);
if (location && (!(location == "")))
if (location && *location != '\0')
gst_dv1394src->port = strtol (location, NULL, 10);
else
gst_dv1394src->port = DEFAULT_PORT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment