Browse Source

avstring: fix compiler warning about freeing const pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
ab796ded75
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavutil/avstring.c

+ 2
- 1
libavutil/avstring.c View 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);


Loading…
Cancel
Save