[Refdb-cvs] CVS: refdb/src xmlhandler.c,1.22.2.21,1.22.2.22
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mho...@us...> - 2005-12-17 01:35:22
|
Update of /cvsroot/refdb/refdb/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26356/src Modified Files: Tag: Release_0_9_5_stable xmlhandler.c Log Message: fix handling of link0 Index: xmlhandler.c =================================================================== RCS file: /cvsroot/refdb/refdb/src/xmlhandler.c,v retrieving revision 1.22.2.21 retrieving revision 1.22.2.22 diff -u -U2 -r1.22.2.21 -r1.22.2.22 --- xmlhandler.c 3 Nov 2005 20:40:19 -0000 1.22.2.21 +++ xmlhandler.c 17 Dec 2005 01:35:14 -0000 1.22.2.22 @@ -1208,5 +1208,8 @@ else if (strcmp(ptr_el->elname, "LINK") == 0) { ptr_attr = get_ancestor_attr(ptr_el, "LINK", "ROLE"); - if (ptr_attr && strcmp(ptr_attr, "2") == 0) { + if (ptr_attr && strcmp(ptr_attr, "1") == 0) { + strcpy(concat, "LINK1"); + } + else if (ptr_attr && strcmp(ptr_attr, "2") == 0) { strcpy(concat, "LINK2"); } @@ -1218,5 +1221,5 @@ } else { - strcpy(concat, "LINK1"); + strcpy(concat, "LINK0"); } } |