[xml] xpath.c division by zero



I just downloaded and build libxml 2.3.5, but I am getting an error when I
run the sample program (gjobread).  I traced the problem to the xmlXPathInit
function (below).  This function does division by zero three times.  What
should it be doing?




/**
 * xmlXPathInit:
 *
 * Initialize the XPath environment
 */
void
xmlXPathInit(void) {
    static int initialized = 0;

    if (initialized) return;

    xmlXPathNAN = 0;
    xmlXPathNAN /= 0;

    xmlXPathPINF = 1;
    xmlXPathPINF /= 0;

    xmlXPathNINF = -1;
    xmlXPathNINF /= 0;

    initialized = 1;
}





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]