[rkward-cvs] rkward/rkward/plugin rkformula.cpp,1.10,1.11

Thomas Friedrichsmeier tfry at users.sourceforge.net
Fri Apr 14 18:47:02 UTC 2006


Update of /cvsroot/rkward/rkward/rkward/plugin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11842

Modified Files:
	rkformula.cpp 
Log Message:
Fix potential crash in RKFormula

Index: rkformula.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/plugin/rkformula.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** rkformula.cpp	17 Mar 2006 16:46:25 -0000	1.10
--- rkformula.cpp	14 Apr 2006 18:47:00 -0000	1.11
***************
*** 148,152 ****
  	mangled_names.clear ();
  	RObject *dep_var = dependent->objectValue ();
! 	RObject *container;
  	if (dep_var) {
  		model_ok = true;
--- 148,152 ----
  	mangled_names.clear ();
  	RObject *dep_var = dependent->objectValue ();
! 	RObject *container = 0;
  	if (dep_var) {
  		model_ok = true;
***************
*** 175,179 ****
  		table_string.append (")");
  	} else {
! 		table_string = container->getFullName ();;
  	}
  	
--- 175,179 ----
  		table_string.append (")");
  	} else {
! 		if (container) table_string = container->getFullName ();;
  	}
  	





More information about the rkward-tracker mailing list