diff options
author | ache <ache@ache.one> | 2019-02-08 04:25:57 +0100 |
---|---|---|
committer | ache <ache@ache.one> | 2019-02-08 04:25:57 +0100 |
commit | b50cb39ba33033325f6a859f0d4f778d06195441 (patch) | |
tree | ed97d31f1e20f198fe1762fd34366025adfdc2e9 | |
parent | Todo things (diff) |
Remove unecessary operations
-rw-r--r-- | main.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -102,12 +102,7 @@ int main(int argc, char* argv[]){ #endif return r; } - if( r = loadConv() ) { -#ifdef DEBUG - fprintf(stderr, "Error reading contact list\n"); -#endif - return r; - } + contact* contact = NULL; int nameOrNumber = 0; @@ -115,6 +110,7 @@ int main(int argc, char* argv[]){ r = findContact(optarg, &contact); else r = findContactFromName(optarg, &contact); + if( r ) { #ifdef DEBUG fprintf(stderr, "Missing contact"); |