X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_diff.c;h=3f80a156bd4f2694f83b38d6c0b186328ca54456;hb=ed9474147fcf5bace60fd36b5c3ca3b4f1f8ac53;hp=0e04de675b29cd1fdc5ab66d4a335c892d70ed05;hpb=285da1fa16e80919db972b1d7021c0b4705bedb1;p=rrdtool.git diff --git a/src/rrd_diff.c b/src/rrd_diff.c index 0e04de6..3f80a15 100644 --- a/src/rrd_diff.c +++ b/src/rrd_diff.c @@ -7,6 +7,10 @@ ***************************************************************************** * $Id$ * $Log$ + * Revision 1.3 2002/04/01 18:31:22 oetiker + * "!" takes a higher preference than "||" this means rrd_update N:: would + * segfault -- Oliver Cook + * * Revision 1.2 2002/02/01 20:34:49 oetiker * fixed version number and date/time * @@ -35,13 +39,13 @@ rrd_diff(char *a, char *b) char res[LAST_DS_LEN+1], *a1, *b1, *r1, *fix; int c,x,m; - while (!isdigit((int)*a) || *a==0) + while (!(isdigit((int)*a) || *a==0)) a++; fix=a; while (isdigit((int)*fix)) fix++; *fix = 0; /* maybe there is some non digit data in the string */ - while (!isdigit((int)*b) || *b==0) + while (!(isdigit((int)*b) || *b==0)) b++; fix=b; while (isdigit((int)*fix))