[tracker/wip/carlosg/serialize-api: 22/22] libtracker-sparql: Fix typo




commit 564311baa206f3221766f2655ee690d18c0e0786
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Nov 28 13:49:41 2021 +0100

    libtracker-sparql: Fix typo
    
    We are not creating a char array, but an array of pointers to char.
    This is harmless, but we were getting 8x the size on 64-bit arches,
    and we don't need that much.

 src/libtracker-sparql/tracker-endpoint-http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-sparql/tracker-endpoint-http.c b/src/libtracker-sparql/tracker-endpoint-http.c
index 2f1282004..03a7eb4ea 100644
--- a/src/libtracker-sparql/tracker-endpoint-http.c
+++ b/src/libtracker-sparql/tracker-endpoint-http.c
@@ -108,7 +108,7 @@ handle_request_in_thread (GTask        *task,
                           GCancellable *cancellable)
 {
        Request *request = task_data;
-       gchar *buffer[1000];
+       gchar buffer[1000];
        SoupMessageBody *message_body;
        GError *error = NULL;
        gssize count;


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