aboutsummaryrefslogtreecommitdiff
path: root/sms.c
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-02-08 06:26:44 +0100
committerache <ache@ache.one>2019-02-08 06:26:44 +0100
commit0aa697b13d18140defc473b32663a938e00e97f6 (patch)
treecf1c283522662e56d9ad1eedfa184d805255fc9e /sms.c
parentRemove unecessary operations (diff)
Refesh from inotify (fuck yeah !)
Diffstat (limited to 'sms.c')
-rw-r--r--sms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sms.c b/sms.c
index bf7fc72..df48780 100644
--- a/sms.c
+++ b/sms.c
@@ -157,8 +157,10 @@ int readSMS(char* filename, int inbox_outbox) {
getSms.len = sms_len;
int r = insertSMS(&getSms);
- if( r )
+ if( r ) {
+ fclose(file);
return 2;
+ }
fclose(file);
}else{