summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xstr/str.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/str/str.c b/str/str.c
index 052ec48..18b8e74 100755
--- a/str/str.c
+++ b/str/str.c
@@ -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);
}