Changeset 13 for trunk/src/sh_database.c
- Timestamp:
- Jan 8, 2006, 10:13:03 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_database.c
r12 r13 1438 1438 attr_tab[i].attr = malloc (j+1); /* only once */ 1439 1439 if (NULL == attr_tab[i].attr) 1440 SL_RETURN (NULL, _("sh_database_parse"));1440 return; 1441 1441 for (k = 0; k < j; ++k) 1442 1442 attr_tab[i].attr[k] = attr_tab[i].attr_o[k] ^ XOR_CODE; … … 1503 1503 escp = (escp == 1) ? 0 : 1; 1504 1504 } 1505 else if (*p == '\'' && escp == 0) 1506 { 1507 retv = S_FALSE; 1508 } 1509 else if (*p == '\"' && escp == 0) 1505 else if ((*p == '\'' || *p == '\"') && escp == 0) 1510 1506 { 1511 1507 retv = S_FALSE; … … 1573 1569 parse: 1574 1570 1575 while ( (p != NULL) && (*p == ' ' || *p == '>'))1571 while (*p == ' ' || *p == '>') 1576 1572 ++p; 1577 1573 1578 if ( !p ||*p == '\0')1574 if (*p == '\0') 1579 1575 SL_RETURN(NULL, _("sh_database_parse")); 1580 1576 … … 1673 1669 } 1674 1670 } 1675 ++i;1676 1671 } 1677 1672
Note:
See TracChangeset
for help on using the changeset viewer.