[brlcad-commits] SF.net SVN: brlcad:[32561] brlcad/trunk/src/libged/ged.c
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <bo...@us...> - 2008-08-29 12:57:10
|
Revision: 32561 http://brlcad.svn.sourceforge.net/brlcad/?rev=32561&view=rev Author: bob1961 Date: 2008-08-29 12:57:17 +0000 (Fri, 29 Aug 2008) Log Message: ----------- Making sure ged_log and ged_result_string will initially contain an empty string instead of a null pointer (I wrongly assumed that bu_vls_init did this :-( ). This way, any callers of libged functions can harvest ged_log or ged_result_str without the need to check whether or not it contains a null pointer (i.e. it should always contain atleast an empty string assuming the application doesn't free the vls). Modified Paths: -------------- brlcad/trunk/src/libged/ged.c Modified: brlcad/trunk/src/libged/ged.c =================================================================== --- brlcad/trunk/src/libged/ged.c 2008-08-29 10:28:44 UTC (rev 32560) +++ brlcad/trunk/src/libged/ged.c 2008-08-29 12:57:17 UTC (rev 32561) @@ -102,6 +102,10 @@ { bu_vls_init(&gedp->ged_log); bu_vls_init(&gedp->ged_result_str); + + bu_vls_extend(&gedp->ged_log, 1); + bu_vls_extend(&gedp->ged_result_str, 1); + ged_drawable_init(gedp->ged_gdp); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |