[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gnue/geas/src schema.c
From: |
Reinhard Mueller |
Subject: |
gnue/geas/src schema.c |
Date: |
Thu, 27 Sep 2001 13:11:11 -0400 |
CVSROOT: /cvsroot/gnue
Module name: gnue
Changes by: Reinhard Mueller <address@hidden> 01/09/27 13:11:10
Modified files:
geas/src : schema.c
Log message:
Return an empty string instead of a NULL pointer as filename for
classes that were not defined in a file.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue/geas/src/schema.c.diff?tr1=1.18&tr2=1.19&r1=text&r2=text
Patches:
Index: gnue/geas/src/schema.c
diff -u gnue/geas/src/schema.c:1.18 gnue/geas/src/schema.c:1.19
--- gnue/geas/src/schema.c:1.18 Fri Sep 14 17:27:28 2001
+++ gnue/geas/src/schema.c Thu Sep 27 13:11:10 2001
@@ -19,7 +19,7 @@
along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- $Id: schema.c,v 1.18 2001/09/14 21:27:28 ntiffin Exp $
+ $Id: schema.c,v 1.19 2001/09/27 17:11:10 reinhard Exp $
*/
@@ -130,9 +130,13 @@
retval->name = CORBA_string_dup (odl_class_get_full_name (c));
if ( odl_class_get_gcd_filename (c) )
{
- retval->gcdfilename = CORBA_string_dup
(g_basename(odl_class_get_gcd_filename (c)));
+ retval->gcdfilename = CORBA_string_dup
(g_basename(odl_class_get_gcd_filename (c)));
}
-
+ else
+ {
+ retval->gcdfilename = "";
+ }
+
/* parents */
l = c->parents;
count = g_list_length (l);