Update copyright dates
[src/app-framework-binder.git] / src / devtools / json2c.c
index 109b6ee..b4043e2 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * 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++)) {
-                       case 0:
-                               b--;
-                               break;
                        case '/':
                                buf[0] = '/';
                                buf[1] = 0;
                                break;
+                       case 0:
+                               b--;
+                               /*@fallthrough@*/
                        default:
                                buf[0] = '\\';
                                buf[1] = c;