gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Fix fix false positive "Misconfiguration in the phone table dete


From: Ladislav Michl
Subject: [PATCH] Fix fix false positive "Misconfiguration in the phone table detected."
Date: Thu, 19 Nov 2020 19:41:40 +0100

Fixes: 760f9f070 ("Fix false positive "Misconfiguration in the phone table 
detected."")
---
 common/phones/nk6510.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index a94f6d7e..bc698802 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -1273,7 +1273,7 @@ static gn_error NK6510_GetSMSFolders(gn_data *data, 
struct gn_statemachine *stat
                dprintf("NK6510_GetSMSFolders: before switch to S40_30\nerror: 
%s (%d)\n", gn_error_print(error), error);
                /* Try file approach */
                error = NK6510_GetSMSFolders_S40_30(data, state);
-               if (error == GN_ERR_NONE) {
+               if (error) {
                        dprintf("Misconfiguration in the phone table 
detected.\nPlease report to gnokii ml (gnokii-users@nongnu.org).\n");
                        dprintf("Model %s (%s) is series40 3rd+ Edition.\n", 
DRVINSTANCE(state)->pm->product_name, DRVINSTANCE(state)->pm->model);
                        DRVINSTANCE(state)->pm->flags |= PM_DEFAULT_S40_3RD;
-- 
2.29.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]