[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-developers] little bug in mysql.c
From: |
Jean Michault |
Subject: |
[GNUnet-developers] little bug in mysql.c |
Date: |
Mon, 11 Dec 2006 03:12:36 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.7) Gecko/20060405 SeaMonkey/1.0.5 |
Each timme i restart gnunetd, gnunet-stats gives me :
# bytes in datastore
: 0
I found that it comes from a little bug at line 1364 in mysql.c :
Index: src/applications/sqstore_mysql/mysql.c
===================================================================
--- src/applications/sqstore_mysql/mysql.c (révision 3913)
+++ src/applications/sqstore_mysql/mysql.c (copie de travail)
@@ -1364,7 +1364,7 @@
dbh);
content_size = 0;
} else {
- SSCANF(sql_row[1], "%llu", &content_size);
+ SSCANF(sql_row[0], "%llu", &content_size);
}
if (sql_res != NULL)
mysql_free_result(sql_res);
Jean Michault
- [GNUnet-developers] little bug in mysql.c,
Jean Michault <=