vtfontcvt: Return error from write_fnt_source
Previously write_fnt_source always returned 0, silently discarding errors. Return rv so that errors set vtfontcvt's shell exit appropriately. Sponsored by: The FreeBSD Foundation
This commit is contained in:
@@ -987,7 +987,7 @@ write_fnt_source(bool lz4, const char *filename)
|
||||
if (rv != 0)
|
||||
perror(filename);
|
||||
fclose(fp);
|
||||
return (0);
|
||||
return (rv);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user