]> git.refcnt.org Git - colorize.git/commitdiff
Const pointer
authorSteven Schubiger <stsc@refcnt.org>
Fri, 20 May 2016 19:56:28 +0000 (21:56 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Fri, 20 May 2016 19:56:28 +0000 (21:56 +0200)
colorize.c

index 938bdd6c105000a79894c9bbee4f92c4ce20f88c..5f64ce762430c78add614cc1101aea4a1f7674dc 100644 (file)
@@ -1075,7 +1075,7 @@ gather_esc_offsets (const char *p, const char **start, const char **end)
     if (*p == 27 && *(p + 1) == '[')
       {
         bool valid = false;
-        const char *begin = p;
+        const char *const begin = p;
         p += 2;
         if (clean_all)
           valid = validate_esc_clean_all (&p);