comparison ffstools/caltools/fc-rftab2c.c @ 466:5bcf12be0834

ffstools/caltools: null pointer passing fixes
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 11 Feb 2019 05:50:45 +0000
parents f4a32c1025a2
children a684dd7799f8
comparison
equal deleted inserted replaced
465:003e48f8ebe1 466:5bcf12be0834
206 if (argc < 2 || argc > 3) { 206 if (argc < 2 || argc > 3) {
207 fprintf(stderr, "usage: %s ascii-rftab-file [C-output-file]\n", 207 fprintf(stderr, "usage: %s ascii-rftab-file [C-output-file]\n",
208 argv[0]); 208 argv[0]);
209 exit(1); 209 exit(1);
210 } 210 }
211 if (read_rf_table_ext(argv[1], binbuf, 1, &format, 0)) 211 if (read_rf_table_ext(argv[1], binbuf, 1, &format, (unsigned *) 0))
212 exit(1); 212 exit(1);
213 for (map = map_table; map->format; map++) 213 for (map = map_table; map->format; map++)
214 if (!strcmp(map->format, format)) 214 if (!strcmp(map->format, format))
215 break; 215 break;
216 if (!map->func) { 216 if (!map->func) {