aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_strings_to_data.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-06-21 17:41:26 +0000
committerChristian Grothoff <christian@grothoff.org>2013-06-21 17:41:26 +0000
commit34ae13658cce5341170e533e18242de8b4267a83 (patch)
tree55dd84b350acc1589b90dc865ac8c171b66cef9e /src/util/test_strings_to_data.c
parent7fdecd6dc7eedd58b458013d44f245690b1b0caa (diff)
downloadgnunet-34ae13658cce5341170e533e18242de8b4267a83.tar.gz
gnunet-34ae13658cce5341170e533e18242de8b4267a83.zip
-check for NULL (in testcase)
Diffstat (limited to 'src/util/test_strings_to_data.c')
-rw-r--r--src/util/test_strings_to_data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/test_strings_to_data.c b/src/util/test_strings_to_data.c
index 739773558..2ac680b83 100644
--- a/src/util/test_strings_to_data.c
+++ b/src/util/test_strings_to_data.c
@@ -44,6 +44,7 @@ main (int argc, char *argv[])
44 memset (dst, i+1, sizeof (dst)); 44 memset (dst, i+1, sizeof (dst));
45 45
46 end = GNUNET_STRINGS_data_to_string (&src, i, buf, sizeof (buf)); 46 end = GNUNET_STRINGS_data_to_string (&src, i, buf, sizeof (buf));
47 GNUNET_assert (NULL != end);
47 end[0] = '\0'; 48 end[0] = '\0';
48 if (GNUNET_OK != 49 if (GNUNET_OK !=
49 GNUNET_STRINGS_string_to_data (buf, strlen (buf), dst, i)) 50 GNUNET_STRINGS_string_to_data (buf, strlen (buf), dst, i))