diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-03-30 10:26:34 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-03-30 10:26:34 -0400 |
commit | 88caa552cc3742189124c297e7cf65ac5e5ef332 (patch) | |
tree | cac14dd7f56949bd0b0c108df3f3f712d7a21c72 /src/test | |
parent | affbcded5ca03d8e3ccc5debd3c23240e492c62a (diff) | |
download | tor-88caa552cc3742189124c297e7cf65ac5e5ef332.tar.gz tor-88caa552cc3742189124c297e7cf65ac5e5ef332.zip |
Fix a couple of "unused assigned value" warnings in parse_config tests
Coverity doesn't like the fact that we were storing the value of
parse_config_line_from_str() but not checking it in a couple of
cases.
Fixes CID 505 and 506.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 0f9d1a769c..88f00e071b 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -388,6 +388,8 @@ test_util_config_line_comment_character(void) test_streq(v, "some value"); tor_free(k); tor_free(v); + test_streq(str, "k3 /home/user/myTorNetwork#2\n"); + #if 0 str = parse_config_line_from_str(str, &k, &v); test_streq(k, "k3"); @@ -499,6 +501,7 @@ test_util_config_line_escaped_content(void) test_streq(k, "Mix"); test_streq(v, "This is a \"star\":\t'*'\nAnd second line"); tor_free(k); tor_free(v); + test_streq(str, ""); str = buf2; |