diff options
author | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-11 15:55:47 +0000 |
---|---|---|
committer | Christian Fuchs <christian.fuchs@cfuchs.net> | 2013-09-11 15:55:47 +0000 |
commit | 361fb8f1f3f57d0fb47fa923fe8c813f5d0bb86e (patch) | |
tree | 5b485812cd2eac7d51e4a05d2bf006dd6b2ee873 /src/scalarproduct/gnunet-scalarproduct.c | |
parent | bc4854ff5e7e320cee78dd73363757dcf09d18fa (diff) | |
download | gnunet-361fb8f1f3f57d0fb47fa923fe8c813f5d0bb86e.tar.gz gnunet-361fb8f1f3f57d0fb47fa923fe8c813f5d0bb86e.zip |
removed a couple of extra checks from the SP-api
fixed a silly bug in the SP-client
removed two incorrect frees in the SP-service
Diffstat (limited to 'src/scalarproduct/gnunet-scalarproduct.c')
-rw-r--r-- | src/scalarproduct/gnunet-scalarproduct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scalarproduct/gnunet-scalarproduct.c b/src/scalarproduct/gnunet-scalarproduct.c index 97cca3233..c32bfdaa1 100644 --- a/src/scalarproduct/gnunet-scalarproduct.c +++ b/src/scalarproduct/gnunet-scalarproduct.c | |||
@@ -254,7 +254,7 @@ run (void *cls, | |||
254 | // get the length of the current element and replace , with null | 254 | // get the length of the current element and replace , with null |
255 | for (end = begin; *end && *end != ','; end++); | 255 | for (end = begin; *end && *end != ','; end++); |
256 | 256 | ||
257 | if (1 == sscanf (begin, "%" SCNd32",", &element)) | 257 | if (1 == sscanf (begin, "%" SCNd32",", &elements[element_count])) |
258 | { | 258 | { |
259 | //element in the middle | 259 | //element in the middle |
260 | element_count++; | 260 | element_count++; |