]>
Commit | Line | Data |
---|---|---|
78254722 JB |
1 | --- psensor-1.2.0/src/rsensor.c.orig 2016-12-20 00:39:54.000000000 +0100 |
2 | +++ psensor-1.2.0/src/rsensor.c 2018-05-18 19:32:37.455589334 +0200 | |
3 | @@ -133,7 +133,7 @@ | |
4 | ||
5 | obj = get_json_object(url); | |
6 | ||
7 | - if (obj && !is_error(obj)) { | |
8 | + if (obj != NULL) { | |
9 | n = json_object_array_length(obj); | |
10 | sensors = malloc((n + 1) * sizeof(struct psensor *)); | |
11 | ||
12 | @@ -168,12 +168,12 @@ | |
13 | ||
14 | obj = get_json_object(get_url(s)); | |
15 | ||
16 | - if (obj && !is_error(obj)) { | |
17 | + if (obj != NULL) { | |
18 | json_object *om; | |
19 | ||
20 | json_object_object_get_ex(obj, "last_measure", &om); | |
21 | ||
22 | - if (!is_error(obj)) { | |
23 | + if (obj != NULL) { | |
24 | json_object *ov, *ot; | |
25 | struct timeval tv; | |
26 |