device: fix comparison in _has_classesv()
authorTim-Philipp Müller <tim@centricular.com>
Thu, 21 Jan 2016 15:45:30 +0000 (15:45 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 21 Jan 2016 15:45:30 +0000 (15:45 +0000)
commit05a96555233649eb132c366ae54ee330d267ddd9
tree48c6b60086181e9acc5fbb5bf5c845743d0a614e
parenta72368ebb388c22ff68a084a12b09327d857b34c
device: fix comparison in _has_classesv()

We're comparing a pointer type with '\0' here, which
probably isn't right, and the loop condition made sure
that classes[0] is != NULL already, so it's pointless.
Was probaby meant to check if the string pointed to is
not empty, so make it do that instead.
gst/gstdevice.c