/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/lexer.lxx
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/lexer.lxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by cpcp, Tue Aug 13 20:56:01 2002 UTC revision 1.2 by cpcp, Thu Sep 25 19:27:11 2003 UTC
# Line 220  char * get_value(char * const tag, char Line 220  char * get_value(char * const tag, char
220        len_prefix++;        len_prefix++;
221      }      }
222    len_prefix++; // to strip one more space...    len_prefix++; // to strip one more space...
223    tmp_val = strdup(value);    if (len_prefix < strlen(value))
224    tmp_val2 = tmp_val;          {
225    for  (cpt = 0; cpt < len_prefix; cpt++)            tmp_val = strdup(value);
226      tmp_val++;            for  (cpt = 0; cpt < len_prefix; cpt++)
227                    {
228                    tmp_val++;
229                    }
230            }
231      else
232            {
233            tmp_val = "";
234            }
235    res = strdup(tmp_val);    res = strdup(tmp_val);
236    free(tmp_val2);    tmp_val = 0;
   tmp_val2 = 0; tmp_val = 0;  
237    return res;    return res;
238  }  }
239    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26