X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommand_db.c;fp=src%2Fcommand_db.c;h=25fcd24e90076da9ca8c5c75689c7b487525a6f3;hb=2409e8ab623f8ef1452508b0fb4a4293692ed6a7;hp=ba33e912dc9df39d8b11fe26626e949f2194354c;hpb=f44e1046dd5fafc71ac481490633ae544c5e5b0c;p=plomrogue diff --git a/src/command_db.c b/src/command_db.c index ba33e91..25fcd24 100644 --- a/src/command_db.c +++ b/src/command_db.c @@ -81,7 +81,8 @@ extern void init_command_db(struct World * world) FILE * file = fopen("config/commands", "r"); exit_err(NULL == file, world, err); uint16_t lines, linemax; - textfile_sizes(file, &linemax, &lines); + err = "Trouble in init_cmds() with textfile_sizes()."; + exit_err(textfile_sizes(file, &linemax, &lines), world, err); err = "Trouble in init_cmds() with malloc()."; char * line = malloc(linemax); exit_err(NULL == line, world, err);