Created
May 8, 2013 14:42
-
-
Save Elwell/5540913 to your computer and use it in GitHub Desktop.
bugfix for owfs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -u -r1.220 ow_parsename.c | |
--- ../../..//owlib/src/c/ow_parsename.c 24 Jul 2012 01:47:31 -0000 1.220 | |
+++ ../../..//owlib/src/c/ow_parsename.c 8 May 2013 14:39:46 -0000 | |
@@ -343,11 +343,11 @@ | |
return parse_nonreal; | |
} else if (strcasecmp(pathnow, "text") == 0) { | |
- pn->state |= ePS_json; | |
+ pn->state |= ePS_text; | |
return parse_first; | |
} else if (strcasecmp(pathnow, "json") == 0) { | |
- pn->state |= ePS_text; | |
+ pn->state |= ePS_json; | |
return parse_first; | |
} else if (strcasecmp(pathnow, "uncached") == 0) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://owfs.cvs.sourceforge.net/viewvc/owfs/owfs/module/owlib/src/c/ow_parsename.c?r1=1.204&r2=1.205 introduced the bug