avstring: fix compiler warning about freeing const pointers
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Nov 2012 19:10:30 +0000 (20:10 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Nov 2012 19:22:53 +0000 (20:22 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/avstring.c

index 73ab7aa..802d0f8 100644 (file)
@@ -252,7 +252,8 @@ int main(void)
         };
 
         for (i=0; i < FF_ARRAY_ELEMS(strings); i++) {
-            const char *p = strings[i], *q;
+            const char *p = strings[i];
+            char *q;
             printf("|%s|", p);
             q = av_get_token(&p, ":");
             printf(" -> |%s|", q);