diff options
Diffstat (limited to 'main.c')
-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"); |