diff options
| author | amy <[email protected]> | 2025-12-01 02:29:08 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-01 02:29:08 -0800 |
| commit | a7caf5e9f4ca1cfddafaf5880d7ee2020e3c1578 (patch) | |
| tree | 86009cf7312ff6dc4cb5c2e1bcf7a9a43a561750 /src/net | |
| parent | 228ba21e4fe702393b5e131ea14bbbfceff3f0b1 (diff) | |
| parent | 735c7feb19cb29ec24588bf1a4986b52f8cf6ffa (diff) | |
Merge pull request #6 from ameliasquires/main
update
Diffstat (limited to 'src/net')
| -rw-r--r-- | src/net/util.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/util.c b/src/net/util.c index 866e931..bada160 100644 --- a/src/net/util.c +++ b/src/net/util.c @@ -414,7 +414,10 @@ void parse_mimetypes(){ mime_type = map_init(); FILE* fp = fopen(_mimetypes, "r"); - if(fp == NULL) return (void)printf("unable to load mimetypes, set llby.net.mimetypes to a proper location, or nil to skip this\n"); + if(fp == NULL){ + fprintf(stderr, "unable to load mimetypes, set llby.net.mimetypes to a proper location, or nil to skip this\n"); + return; + } char* line = NULL; size_t len = 0; |
