Revision: 41383
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41383&view=rev
Author:   brlcad
Date:     2010-11-16 19:47:46 +0000 (Tue, 16 Nov 2010)

Log Message:
-----------
use a vp pointer to be consistent with other similar code

Modified Paths:
--------------
    brlcad/trunk/src/libged/preview.c

Modified: brlcad/trunk/src/libged/preview.c
===================================================================
--- brlcad/trunk/src/libged/preview.c   2010-11-16 19:44:08 UTC (rev 41382)
+++ brlcad/trunk/src/libged/preview.c   2010-11-16 19:47:46 UTC (rev 41383)
@@ -249,6 +249,7 @@
     vect_t temp;
     const char *argv0 = NULL;
     size_t args = 0;
+    char **vp;
 
     GED_CHECK_DATABASE_OPEN(gedp, GED_ERROR);
     GED_CHECK_DRAWABLE(gedp, GED_ERROR);
@@ -313,10 +314,11 @@
 
     args = argc + 2 + ged_count_tops(gedp);
     gedp->ged_gdp->gd_rt_cmd = (char **)bu_calloc(args, sizeof(char *), "alloc 
gd_rt_cmd");
-    gedp->ged_gdp->gd_rt_cmd[0] = bu_strdup(argv0);
+    vp = &gedp->ged_gdp->gd_rt_cmd[0];
+    *vp++ = bu_strdup(argv0);
 
     /* Build list of top-level objects in view, in 
_ged_current_gedp->ged_gdp->gd_rt_cmd[] */
-    _ged_current_gedp->ged_gdp->gd_rt_cmd_len = ged_build_tops(gedp, 
_ged_current_gedp->ged_gdp->gd_rt_cmd++, 
&_ged_current_gedp->ged_gdp->gd_rt_cmd[args]);
+    _ged_current_gedp->ged_gdp->gd_rt_cmd_len = ged_build_tops(gedp, vp, 
&_ged_current_gedp->ged_gdp->gd_rt_cmd[args]);
 
     preview_vbp = rt_vlblock_init();
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to