Revision: 70685 http://sourceforge.net/p/brlcad/code/70685 Author: starseeker Date: 2018-02-08 12:33:32 +0000 (Thu, 08 Feb 2018) Log Message: ----------- no point proceeding if fmt_vect is null
Modified Paths: -------------- brlcad/trunk/src/libanalyze/nirt.cxx Modified: brlcad/trunk/src/libanalyze/nirt.cxx =================================================================== --- brlcad/trunk/src/libanalyze/nirt.cxx 2018-02-08 00:44:43 UTC (rev 70684) +++ brlcad/trunk/src/libanalyze/nirt.cxx 2018-02-08 12:33:32 UTC (rev 70685) @@ -911,7 +911,7 @@ report(struct nirt_state *nss, char type, struct nout_record *r) { struct bu_vls rstr = BU_VLS_INIT_ZERO; - std::vector<std::pair<std::string,std::string> > *fmt_vect; + std::vector<std::pair<std::string,std::string> > *fmt_vect = NULL; std::vector<std::pair<std::string,std::string> >::iterator f_it; switch (type) { @@ -938,7 +938,7 @@ break; default: lerr(nss, "Error: unknown fmt type %s\n", type); - break; + return; } for(f_it = fmt_vect->begin(); f_it != fmt_vect->end(); f_it++) { const char *key = (*f_it).second.c_str(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ BRL-CAD Source Commits mailing list brlcad-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-commits