[LON-CAPA-cvs] cvs: loncom /homework/caparesponse caparesponse.c

bowersj2 lon-capa-cvs@mail.lon-capa.org
Tue, 27 May 2003 17:01:36 -0000


bowersj2		Tue May 27 13:01:36 2003 EDT

  Modified files:              
    /loncom/homework/caparesponse	caparesponse.c 
  Log:
  dduuuuuuuhhhhhhhhhhhhhhh.............
  
  
  
Index: loncom/homework/caparesponse/caparesponse.c
diff -u loncom/homework/caparesponse/caparesponse.c:1.8 loncom/homework/caparesponse/caparesponse.c:1.9
--- loncom/homework/caparesponse/caparesponse.c:1.8	Tue May 27 11:29:02 2003
+++ loncom/homework/caparesponse/caparesponse.c	Tue May 27 13:01:36 2003
@@ -1,6 +1,6 @@
 /* The LearningOnline Network with CAPA 
  * CAPA wrapper code
- * $Id: caparesponse.c,v 1.8 2003/05/27 15:29:02 bowersj2 Exp $
+ * $Id: caparesponse.c,v 1.9 2003/05/27 17:01:36 bowersj2 Exp $
  *
  * Copyright Michigan State University Board of Trustees
  *
@@ -76,7 +76,7 @@
   char *error=NULL,filename[FILE_NAME_LENGTH];
   FILE *fp;
 
-  /* eed to initialize unit parser*/
+  /* need to initialize unit parser*/
   sprintf(filename,"/home/httpd/html/res/adm/includes/capa.units");
   if ((fp=fopen(filename,"r"))==NULL) {
     /* printf("Error: can't open %s\n",filename);*/
@@ -112,6 +112,7 @@
     p.ans_unit   = u_parse_unit(unit_str);
   } else {
     p.unit_str[0]='\0';
+    p.ans_unit=NULL;
   }
   p.calc       = calc;