OSDN Git Service

fix logo parse func
[rec10/rec10-git.git] / epgdump / sdt.c
index bfc3c28..0f8d12a 100755 (executable)
@@ -214,8 +214,7 @@ void dumpSDT(unsigned char *ptr, SVT_CONTROL *top,STATION **station, int * stati
                                                }
                                        }
 
-                                       pStation = realloc(pStation,(stationi+1)*sizeof(STATION));
-                                       if (!pStation) printf( "Realloc returned NULL!!! stationi = %d\n", stationi);
+                                       pStation = realloc(pStation, (stationi + 1) * sizeof(STATION));
                                        pStation[stationi].name = malloc( strlen(desc.service_name) + 1 );
                                        pStation[stationi].ontv = malloc( strlen(sid) + 1 );
                                        pStation[stationi].tsId = sdth.transport_stream_id;