Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add gitreview file for Lucky Lamprey branch
[src/app-framework-binder.git]
/
src
/
devtools
/
json2c.c
diff --git
a/src/devtools/json2c.c
b/src/devtools/json2c.c
index
109b6ee
..
b4043e2
100644
(file)
--- a/
src/devtools/json2c.c
+++ b/
src/devtools/json2c.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 201
6, 2017
"IoT.bzh"
+ * Copyright (C) 201
5-2020
"IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-81,13
+81,13
@@
char *make_desc(struct json_object *o)
}
else if (c == '\\') {
switch ((c = *b++)) {
}
else if (c == '\\') {
switch ((c = *b++)) {
- case 0:
- b--;
- break;
case '/':
buf[0] = '/';
buf[1] = 0;
break;
case '/':
buf[0] = '/';
buf[1] = 0;
break;
+ case 0:
+ b--;
+ /*@fallthrough@*/
default:
buf[0] = '\\';
buf[1] = c;
default:
buf[0] = '\\';
buf[1] = c;