[evolution-etesync] I#7 - Use of uninitialized memory closes #7



commit 8785249f737609320dc75ed41c55796cb9e2e449
Author: Nour E-Din El-Nhass <nouredinosama gmail com>
Date:   Sun Jan 31 14:19:07 2021 +0200

    I#7 - Use of uninitialized memory
    closes #7

 src/common/e-etesync-connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/common/e-etesync-connection.c b/src/common/e-etesync-connection.c
index 4c04716..338bafd 100644
--- a/src/common/e-etesync-connection.c
+++ b/src/common/e-etesync-connection.c
@@ -757,7 +757,7 @@ e_etesync_connection_get_changes_sync (EEteSyncConnection *connection,
 
                        /* At this point, items_data are not empty, then we should loop on items and add each
                           one to the hashtable as meta backend info for each contact */
-                       if (items_data && *items_data) {
+                       if (items_data) {
                                for (item_iter = 0; item_iter < items_data_len; item_iter++) {
                                        const EtebaseItem *item = items_data[item_iter];
                                        gchar *content = NULL, *data_uid = NULL, *revision = NULL, 
*item_cache_b64, buf[BUFF_SIZE];


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