Commit 269f1ba 1 parent dbc8329 commit 269f1ba Copy full SHA for 269f1ba
File tree 1 file changed +7
-5
lines changed
1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -207,11 +207,13 @@ rt_binunif_export5(struct bu_external *ep,
207
207
RT_CK_DB_INTERNAL (ip );
208
208
bip = (struct rt_binunif_internal * )ip -> idb_ptr ;
209
209
RT_CK_BINUNIF (bip );
210
- if (bip -> count <= 0 ) /* nothing to convert */
211
- return 0 ;
212
210
211
+ /* inputs valid, so init before return */
213
212
BU_EXTERNAL_INIT (ep );
214
213
214
+ if (bip -> count <= 0 ) /* nothing to convert */
215
+ return 0 ;
216
+
215
217
/*
216
218
* Convert from internal (host) to database (network) format
217
219
*/
477
479
rt_binunif_get (struct bu_vls * logstr , const struct rt_db_internal * intern , const char * attr )
478
480
{
479
481
register struct rt_binunif_internal * bip = (struct rt_binunif_internal * )intern -> idb_ptr ;
480
- struct bu_external ext ;
481
- size_t i ;
482
- unsigned char * c ;
482
+ struct bu_external ext = BU_EXTERNAL_INIT_ZERO ;
483
+ size_t i ;
484
+ unsigned char * c ;
483
485
484
486
RT_CHECK_BINUNIF (bip );
485
487
You can’t perform that action at this time.
0 commit comments