diff options
| author | Soikk | 2025-11-07 00:42:39 +0100 |
|---|---|---|
| committer | Soikk | 2025-11-07 00:42:39 +0100 |
| commit | f40084deee940dd3ca21aadd79d8ddc058323ac4 (patch) | |
| tree | 79a478a241278071a654c04f39a37555ac2e8250 | |
| parent | 71c6daf9c73d073833eda791240f5fae22b645c6 (diff) | |
| download | soikk-libs-f40084deee940dd3ca21aadd79d8ddc058323ac4.tar.xz soikk-libs-f40084deee940dd3ca21aadd79d8ddc058323ac4.tar.zst | |
Added NULL check
| -rwxr-xr-x | str/str.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -358,6 +358,7 @@ str file_to_nstr(char *filename, u32 len){ void str_to_file(str s, char *filename){ FILE *fp = fopen(filename, "r"); + if(fp == NULL) return; str_to_fp(s, fp); fclose(fp); } |
