Changeset 388d2d1b359f765bc45dc3527a9072f373eafa90
- Timestamp:
- 29/04/06 17:11:48
(3 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1146323508 +0000
- git-parent:
[1715ecf8b022e7abe603fb2fde492f245e3d3ccb]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1146323508 +0000
- Message:
Clean up
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4f15591 |
r388d2d1 |
|
| 412 | 412 | for( a = 0; a < i_extensions; a++ ) |
|---|
| 413 | 413 | { |
|---|
| 414 | | int b; |
|---|
| 415 | | char *tmp; |
|---|
| | 414 | char *tmp, *ptr; |
|---|
| 416 | 415 | |
|---|
| 417 | 416 | while( psz_parser[0] != '\0' && psz_parser[0] == ' ' ) psz_parser++; |
|---|
| 418 | | for( b = 0; psz_parser[b] != '\0'; b++ ) |
|---|
| 419 | | { |
|---|
| 420 | | if( psz_parser[b] == ',' ) break; |
|---|
| 421 | | } |
|---|
| 422 | | tmp = malloc( b + 1 ); |
|---|
| 423 | | strncpy( tmp, psz_parser, b ); |
|---|
| 424 | | tmp[b] = 0; |
|---|
| | 417 | ptr = strchr( psz_parser, ','); |
|---|
| | 418 | tmp = ( ptr == NULL ) |
|---|
| | 419 | ? strdup( psz_parser ) |
|---|
| | 420 | : strndup( psz_parser, ptr - psz_parser ); |
|---|
| | 421 | |
|---|
| 425 | 422 | ppsz_extensions[a] = tmp; |
|---|
| 426 | | psz_parser += b+1; |
|---|
| | 423 | psz_parser = ptr + 1; |
|---|
| 427 | 424 | } |
|---|
| 428 | 425 | } |
|---|