[aravis] gv_device: Make XML protocol field case insensitive
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] gv_device: Make XML protocol field case insensitive
- Date: Thu, 29 May 2014 18:54:59 +0000 (UTC)
commit 22358748d929cf677fd8b4afb8043e4272272eab
Author: Peter Boettcher <boettcher ll mit edu>
Date: Thu May 22 09:53:27 2014 -0400
gv_device: Make XML protocol field case insensitive
src/arvgvdevice.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/arvgvdevice.c b/src/arvgvdevice.c
index 8396999..c69ca86 100644
--- a/src/arvgvdevice.c
+++ b/src/arvgvdevice.c
@@ -550,10 +550,10 @@ _load_genicam (ArvGvDevice *gv_device, guint32 address, size_t *size)
tokens = g_regex_split (arv_gv_device_get_url_regex (), filename, 0);
- if (tokens[0] != NULL) {
- if (g_strcmp0 (tokens[1], "File:") == 0)
+ if (tokens[0] != NULL && tokens[1] != NULL) {
+ if (g_ascii_strcasecmp (tokens[1], "file:") == 0) {
g_file_get_contents (filename, &genicam, NULL, NULL);
- else if (g_strcmp0 (tokens[1], "Local:") == 0 &&
+ } else if (g_ascii_strcasecmp (tokens[1], "local:") == 0 &&
tokens[2] != NULL &&
tokens[3] != NULL &&
tokens[4] != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]