Changeset 166dc5d2b4e0856b8a0a8b54821561117f4fb42b

Show
Ignore:
Timestamp:
28/06/08 20:34:42 (4 months ago)
Author:
Rémi Denis-Courmont <rdenis@simphalempin.com>
git-committer:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1214678082 +0300
git-parent:

[219e1deaa769e4f693cb41c59b2bf7c368a62f2c]

git-author:
Rémi Denis-Courmont <rdenis@simphalempin.com> 1214678082 +0300
Message:

vlc_object_create: assert that the object type is known

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/misc/objects.c

    r2d7ef1f r166dc5d  
    264264            break; 
    265265        default: 
    266             i_size = i_type > (int)sizeof(vlc_object_t) 
    267                          ? i_type : (int)sizeof(vlc_object_t)
     266            assert( i_type > 0 ); /* unknown type?! */ 
     267            i_size = i_type
    268268            i_type = VLC_OBJECT_GENERIC; 
    269269            psz_type = "generic";