--- loncom/homework/caparesponse/caparesponse.c 2004/12/23 18:32:50 1.15 +++ loncom/homework/caparesponse/caparesponse.c 2004/12/23 18:36:42 1.16 @@ -1,6 +1,6 @@ /* The LearningOnline Network with CAPA * CAPA wrapper code - * $Id: caparesponse.c,v 1.15 2004/12/23 18:32:50 albertel Exp $ + * $Id: caparesponse.c,v 1.16 2004/12/23 18:36:42 albertel Exp $ * * Copyright Michigan State University Board of Trustees * @@ -156,6 +156,7 @@ int caparesponse_get_real_response (char } } if( !all_alphabet ) { + tmp_unit_str[0]=NULL; outcome = split_num_unit(answer,&n_part,input,tmp_unit_str); if( outcome > 1 ) { /* with both num and unit parts or only unit part */ if( ans_unit != NULL ) {