summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 748dbc9)
raw | patch | inline | side by side (parent: 748dbc9)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 1 Apr 2002 18:31:22 +0000 (18:31 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Mon, 1 Apr 2002 18:31:22 +0000 (18:31 +0000) |
segfault -- Oliver Cook <ollie@uk.clara.net>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@108 a5681a0c-68f1-0310-ab6d-d61299d08faa
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@108 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_diff.c | patch | blob | history |
diff --git a/program/src/rrd_diff.c b/program/src/rrd_diff.c
index 0e04de675b29cd1fdc5ab66d4a335c892d70ed05..3f80a156bd4f2694f83b38d6c0b186328ca54456 100644 (file)
--- a/program/src/rrd_diff.c
+++ b/program/src/rrd_diff.c
*****************************************************************************
* $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 <ollie@uk.clara.net>
+ *
* Revision 1.2 2002/02/01 20:34:49 oetiker
* fixed version number and date/time
*
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))