Mercurial > mplayer.hg
comparison libmpdemux/tv.c @ 18366:d18fc000093d
100000l to the fools who don't know C
These were all found while auditing for malloc(A*B) type bugs.
Removing them makes it easier to find real incorrect usage and makes
the code more readable.
author | rfelker |
---|---|
date | Mon, 01 May 2006 02:04:09 +0000 |
parents | 90b62d7c0fca |
children | 4168044c1be4 |
comparison
equal
deleted
inserted
replaced
18365:bdec1b4d8623 | 18366:d18fc000093d |
---|---|
373 } | 373 } |
374 if (tv_channel_current->prev) | 374 if (tv_channel_current->prev) |
375 tv_channel_current->prev->next = NULL; | 375 tv_channel_current->prev->next = NULL; |
376 free(tv_channel_current); | 376 free(tv_channel_current); |
377 } else | 377 } else |
378 tv_channel_last_real = malloc(sizeof(char)*5); | 378 tv_channel_last_real = malloc(5); |
379 | 379 |
380 if (tv_channel_list) { | 380 if (tv_channel_list) { |
381 int i; | 381 int i; |
382 int channel = 0; | 382 int channel = 0; |
383 if (tv_param_channel) | 383 if (tv_param_channel) |