From 9102dfa8a9a0165c68bc0bcf877b660f4b583de0 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 23 Apr 2010 09:44:44 +0200 Subject: [PATCH] python plugin: Try to work around a "dereferencing type-punned pointer" warning. --- src/python.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/python.c b/src/python.c index 4d44977f..00516fb2 100644 --- 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]); } -- 2.30.2