[hamradio-commits] [gnss-sdr] 103/303: Fix some problems detected by Coverity Scan
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Mon Feb 13 22:35:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch master
in repository gnss-sdr.
commit a7bd7285953b8e734d13872af1e18ac588299fd8
Author: Carles Fernandez <carlesfernandez at gmail.com>
Date: Thu Oct 13 12:48:05 2016 +0200
Fix some problems detected by Coverity Scan
---
src/tests/system-tests/ttff_gps_l1.cc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/tests/system-tests/ttff_gps_l1.cc b/src/tests/system-tests/ttff_gps_l1.cc
index eaf3e94..a0e11b1 100644
--- a/src/tests/system-tests/ttff_gps_l1.cc
+++ b/src/tests/system-tests/ttff_gps_l1.cc
@@ -349,9 +349,10 @@ void TTFF_GPS_L1_CA_Test::print_TTFF_report(const std::vector<double> & ttff_v,
std::vector<double> ttff = ttff_v;
bool read_ephemeris;
- read_ephemeris = config_->property("GNSS-SDR.SUPL_read_gps_assistance_xml", "false");
+ bool false_bool = false;
+ read_ephemeris = config_->property("GNSS-SDR.SUPL_read_gps_assistance_xml", false_bool);
bool agnss;
- agnss = config_->property("GNSS-SDR.SUPL_gps_enabled", "false");
+ agnss = config_->property("GNSS-SDR.SUPL_gps_enabled", false_bool);
double sum = std::accumulate(ttff.begin(), ttff.end(), 0.0);
double mean = sum / ttff.size();
double sq_sum = std::inner_product(ttff.begin(), ttff.end(), ttff.begin(), 0.0);
@@ -652,7 +653,7 @@ int main(int argc, char **argv)
if ((sysv_msqid = msgget(sysv_msg_key, msgflg )) == -1)
{
std::cout << "GNSS-SDR can not create message queues!" << std::endl;
- throw new std::exception();
+ exit(1);
}
ttff_msgbuf msg;
msg.mtype = 1;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list