summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c632c2e)
raw | patch | inline | side by side (parent: c632c2e)
author | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Mar 2010 20:55:06 +0000 (22:55 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Tue, 30 Mar 2010 20:55:06 +0000 (22:55 +0200) |
… identified by GCC 4.4.3 using -O3.
src/target_scale.c | patch | blob | history |
diff --git a/src/target_scale.c b/src/target_scale.c
index 6b261c7cb84e12c06e1d1c799cd35f5edabaad6e..29fecdfd7b5818479437659982226c993934a63d 100644 (file)
--- a/src/target_scale.c
+++ b/src/target_scale.c
static int ts_destroy (void **user_data) /* {{{ */
{
+ ts_data_t **data;
+
if (user_data == NULL)
return (-EINVAL);
- free (*user_data);
- *user_data = NULL;
+ data = (ts_data_t **) user_data;
+
+ free (*data);
+ *data = NULL;
return (0);
} /* }}} int ts_destroy */