aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/avstring.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-03 20:10:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-03 20:22:53 +0100
commitab796ded757e616cb9167c0a15d70903b86e00f9 (patch)
treeb9d195de7728ad590c51ca69eb8f60324d9d2b85 /libavutil/avstring.c
parent73180ecd0adf854938f66cb35cde2ff16c1a04c0 (diff)
downloadffmpeg-ab796ded757e616cb9167c0a15d70903b86e00f9.tar.gz
avstring: fix compiler warning about freeing const pointers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/avstring.c')
-rw-r--r--libavutil/avstring.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/avstring.c b/libavutil/avstring.c
index 73ab7aad1b..802d0f85e7 100644
--- a/libavutil/avstring.c
+++ b/libavutil/avstring.c
@@ -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);