Changeset 001bc3d2a10b58ef03c5172a0632d69adb4a990e
- Timestamp:
- 23/05/08 15:52:20
(6 months ago)
- Author:
- Rafaël Carré <funman@videolan.org>
- git-committer:
- Rafaël Carré <funman@videolan.org> 1211550740 +0200
- git-parent:
[c3c3d074a690ed93cbd8964de2ee881dbdad7fc7]
- git-author:
- Rafaël Carré <funman@videolan.org> 1211550740 +0200
- Message:
Help to fight NULL pointer dereference in stats
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9df2848 |
r001bc3d |
|
| 33 | 33 | #include <stdio.h> /* required */ |
|---|
| 34 | 34 | |
|---|
| | 35 | #include <assert.h> |
|---|
| | 36 | |
|---|
| 35 | 37 | #include "input/input_internal.h" |
|---|
| 36 | 38 | |
|---|
| … | … | |
| 377 | 379 | } |
|---|
| 378 | 380 | } |
|---|
| | 381 | assert( p_counter ); |
|---|
| 379 | 382 | TimerDump( p_obj, p_counter, true ); |
|---|
| 380 | 383 | vlc_mutex_unlock( &priv->timer_lock ); |
|---|
| … | … | |
| 582 | 585 | bool b_total ) |
|---|
| 583 | 586 | { |
|---|
| | 587 | assert( p_counter ); |
|---|
| | 588 | |
|---|
| 584 | 589 | mtime_t last, total; |
|---|
| 585 | 590 | int i_total; |
|---|
| 586 | | if( !p_counter || p_counter->i_samples != 2 ) |
|---|
| | 591 | if( p_counter->i_samples != 2 ) |
|---|
| 587 | 592 | { |
|---|
| 588 | 593 | msg_Err( p_obj, "timer %s does not exist", p_counter->psz_name ); |
|---|