projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
967a0fd
)
python plugin: Try to work around a "dereferencing type-punned pointer" warning.
author
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 23 Apr 2010 07:44:44 +0000
(09:44 +0200)
committer
Florian Forster
<octo@leeloo.lan.home.verplant.org>
Fri, 23 Apr 2010 07:44:44 +0000
(09:44 +0200)
src/python.c
patch
|
blob
|
history
diff --git
a/src/python.c
b/src/python.c
index
4d44977
..
00516fb
100644
(file)
--- a/
src/python.c
+++ b/
src/python.c
@@
-419,10
+419,9
@@
static int cpy_write_callback(const data_set_t *ds, const value_list_t *value_li
if (meta_data_get_boolean(meta, table[i], &b))
continue;
if (b)
-
temp = Py_True
;
+
PyDict_SetItemString(dict, table[i], Py_True)
;
else
- temp = Py_False;
- PyDict_SetItemString(dict, table[i], temp);
+ PyDict_SetItemString(dict, table[i], Py_False);
}
free(table[i]);
}