[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/07: tag_checker.h: fix unitialized d_has
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/07: tag_checker.h: fix unitialized d_has_next_tag; coverity 1128348 |
Date: |
Thu, 26 Jun 2014 19:54:37 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch maint
in repository gnuradio.
commit 95b66d6656ba4f23dd160412b4c34d0234e0198a
Author: Marcus Müller <address@hidden>
Date: Wed Jun 18 15:50:07 2014 +0200
tag_checker.h: fix unitialized d_has_next_tag; coverity 1128348
keeping style-compatible with the original file, just to keep the commit
small
---
gnuradio-runtime/include/gnuradio/tag_checker.h | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/gnuradio-runtime/include/gnuradio/tag_checker.h
b/gnuradio-runtime/include/gnuradio/tag_checker.h
index f6f73bb..a5616b2 100644
--- a/gnuradio-runtime/include/gnuradio/tag_checker.h
+++ b/gnuradio-runtime/include/gnuradio/tag_checker.h
@@ -30,14 +30,21 @@ namespace gr {
class tag_checker
{
+ private:
+ std::vector<tag_t> d_tags;
+ tag_t d_next_tag;
+ unsigned int d_next_tag_index;
+ bool d_has_next_tag;
+
public:
- tag_checker(std::vector<tag_t> &tags)
+ tag_checker(std::vector<tag_t> &tags):
+ d_has_next_tag(false),
+ d_next_tag_index(0)
{
d_tags = tags;
std::sort(d_tags.begin(), d_tags.end(), &gr::tag_t::offset_compare);
if(d_tags.size() > 0) {
d_has_next_tag = true;
- d_next_tag_index = 0;
d_next_tag = tags[0];
}
};
@@ -60,11 +67,6 @@ namespace gr {
}
};
- private:
- std::vector<tag_t> d_tags;
- tag_t d_next_tag;
- unsigned int d_next_tag_index;
- bool d_has_next_tag;
};
}
- [Commit-gnuradio] [gnuradio] branch maint updated (c138442 -> 6e40376), git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 06/07: call do_update after calling open in the file source constructor, otherwise if seek is called before work, a segmentation fault will occur as d_fp is null, git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 04/07: tag_checker.h: fix unitialized d_has_next_tag; coverity 1128348,
git <=
- [Commit-gnuradio] [gnuradio] 07/07: runtime: fixed order of initializing warning in tag_checker constructor., git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 05/07: check_lfsr_32k: fix < instead of <<; coverity 1046413, git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 02/07: cmake: runtime: On Darwin, malloc is always aligned to a 16 byte boundary, to work with Altivec and SSE (etc) SIMD; so, set ALIGNED_MALLOC to 16 for those Darwin systems that do not have posix_memalign., git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 01/07: add attributes for clang compiler, git, 2014/06/26
- [Commit-gnuradio] [gnuradio] 03/07: runtime: fix comment in posix_memalign., git, 2014/06/26