diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-05-16 16:30:03 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-05-16 16:30:03 +0000 |
commit | 62e85e8f7203a70c3a9d5ac6e9131aa4fccfcb8a (patch) | |
tree | d40a388fe2f9f5dfb5d8b798acd1eb2f7b4e8690 | |
parent | 5daef8a53d92df86d94fa9d28e72b7dad3f0b04b (diff) |
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.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | ext/raw1394/gstdv1394src.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +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): diff --git a/ext/raw1394/gstdv1394src.c b/ext/raw1394/gstdv1394src.c index d10c389c..84476464 100644 --- a/ext/raw1394/gstdv1394src.c +++ b/ext/raw1394/gstdv1394src.c @@ -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; |