[Brlcad-commits] CVS: brlcad/src/mged titles.c,14.8,14.9
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: Sean M. <br...@us...> - 2006-02-14 20:23:16
|
Update of /cvsroot/brlcad/brlcad/src/mged In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9825 Modified Files: titles.c Log Message: mild sanity check, even if the directory pointer is valid, make sure the name is too before printfing Index: titles.c =================================================================== RCS file: /cvsroot/brlcad/brlcad/src/mged/titles.c,v retrieving revision 14.8 retrieving revision 14.9 diff -w -u -r14.8 -r14.9 --- titles.c 4 Feb 2006 16:08:37 -0000 14.8 +++ titles.c 14 Feb 2006 20:23:07 -0000 14.9 @@ -259,13 +259,13 @@ bu_vls_init(&path_rhs); for (i = 0; i < ipathpos; i++) { dp = DB_FULL_PATH_GET(&illump->s_fullpath,i); - if (dp) { + if (dp && dp->d_namep) { bu_vls_printf(&path_lhs, "/%s", dp->d_namep); } } for (; i < illump->s_fullpath.fp_len; i++) { dp = DB_FULL_PATH_GET(&illump->s_fullpath,i); - if (dp) { + if (dp && dp->d_namep) { bu_vls_printf(&path_rhs, "/%s", dp->d_namep); } } |