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

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

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

revision 1.2 by cpcp, Tue Nov 12 21:25:21 2002 UTC revision 1.3 by cpcp, Thu Sep 25 19:27:11 2003 UTC
# Line 3300  char * get_value(char * const tag, char Line 3300  char * get_value(char * const tag, char
3300        len_prefix++;        len_prefix++;
3301      }      }
3302    len_prefix++; // to strip one more space...    len_prefix++; // to strip one more space...
3303    tmp_val = strdup(value);    if (len_prefix < strlen(value))
3304    tmp_val2 = tmp_val;          {
3305    for  (cpt = 0; cpt < len_prefix; cpt++)            tmp_val = strdup(value);
3306      tmp_val++;            for  (cpt = 0; cpt < len_prefix; cpt++)
3307                    {
3308                    tmp_val++;
3309                    }
3310            }
3311      else
3312            {
3313            tmp_val = "";
3314            }
3315    res = strdup(tmp_val);    res = strdup(tmp_val);
3316    free(tmp_val2);    tmp_val = 0;
   tmp_val2 = 0; tmp_val = 0;  
3317    return res;    return res;
3318  }  }
3319    

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

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