aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2019-02-08 04:25:57 +0100
committerache <ache@ache.one>2019-02-08 04:25:57 +0100
commitb50cb39ba33033325f6a859f0d4f778d06195441 (patch)
treeed97d31f1e20f198fe1762fd34366025adfdc2e9
parentTodo things (diff)
Remove unecessary operations
-rw-r--r--main.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/main.c b/main.c
index 353e157..1cab1f8 100644
--- a/main.c
+++ b/main.c
@@ -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");