Changeset 16458 for titan/plugins/imdb


Ignore:
Timestamp:
06/10/12 22:41:40 (12 years ago)
Author:
nit
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/plugins/imdb/imdb.h

    r16438 r16458  
    7272        if(tmpstr != NULL)
    7373        {
    74                 imdb = (struct imdb*)malloc(sizeof(struct imdb));
     74                imdb = (struct imdb*)calloc(1, sizeof(struct imdb));
    7575                if(imdb == NULL)
    7676                {
     
    7979                        return NULL;
    8080                }
    81                 memset(imdb, 0, sizeof(struct imdb));
     81
    8282                imdb->id = string_resub("<a href=\"/title/tt","/",tmpstr);
    8383
Note: See TracChangeset for help on using the changeset viewer.