Changeset 001bc3d2a10b58ef03c5172a0632d69adb4a990e

Show
Ignore:
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
  • src/misc/stats.c

    r9df2848 r001bc3d  
    3333#include <stdio.h>                                               /* required */ 
    3434 
     35#include <assert.h> 
     36 
    3537#include "input/input_internal.h" 
    3638 
     
    377379        } 
    378380    } 
     381    assert( p_counter ); 
    379382    TimerDump( p_obj, p_counter, true ); 
    380383    vlc_mutex_unlock( &priv->timer_lock ); 
     
    582585                       bool b_total ) 
    583586{ 
     587    assert( p_counter ); 
     588 
    584589    mtime_t last, total; 
    585590    int i_total; 
    586     if( !p_counter || p_counter->i_samples != 2 ) 
     591    if( p_counter->i_samples != 2 ) 
    587592    { 
    588593        msg_Err( p_obj, "timer %s does not exist", p_counter->psz_name );