[AD] very very little small bug at config.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Hi, when looking at config.c I came up at this
in the function load_config_file

there is char *tmp...

and then goes
      if (f) {
     tmp = malloc(length+1);

     if (tmp) {

but since tmp is not initialized to NULL, it could lead that is an invalid
filename is passed
it will continue...

so the patch would be to change that line to
char *tmp = NULL

patch atached

Attachment: config.c.dif
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/