summaryrefslogtreecommitdiffstats
path: root/testing/hardinfo/fixsensors.patch
diff options
context:
space:
mode:
authorMichael Mason <ms13sp@gmail.com>2010-03-22 12:17:23 +0000
committerMichael Mason <ms13sp@gmail.com>2010-03-22 12:17:23 +0000
commit8c68fa147705f39ef1ba3dad4c8e03e035e811e9 (patch)
treebc5790bfd46cfef4031a8e57a9155a6f40550e6b /testing/hardinfo/fixsensors.patch
parentab919e61f26ec3409874ebce697842171bfc6d59 (diff)
parent1109f54eb91e05dd7684ee1b30bc8328a52a5005 (diff)
downloadaports-8c68fa147705f39ef1ba3dad4c8e03e035e811e9.tar.bz2
aports-8c68fa147705f39ef1ba3dad4c8e03e035e811e9.tar.xz
Merge branch 'master' of git://git.alpinelinux.org/aports
Diffstat (limited to 'testing/hardinfo/fixsensors.patch')
-rw-r--r--testing/hardinfo/fixsensors.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/hardinfo/fixsensors.patch b/testing/hardinfo/fixsensors.patch
new file mode 100644
index 000000000..812c29458
--- /dev/null
+++ b/testing/hardinfo/fixsensors.patch
@@ -0,0 +1,13 @@
+ diff -upNr hardinfo-0.4.2.2.orign/util.c hardinfo-0.4.2.2/util.c
+--- hardinfo-0.4.2.2.orign/util.c 2007-07-20 16:45:08.000000000 +0200
++++ hardinfo-0.4.2.2/util.c 2007-07-26 10:15:32.000000000 +0200
+@@ -996,7 +996,8 @@ gchar *h_strdup_cprintf(const gchar * fo
+ if (source) {
+ retn = g_strconcat(source, buffer, NULL);
+ g_free(buffer);
+- g_free(source);
++ if(strlen(source))
++ g_free(source);
+ } else {
+ retn = buffer;
+ }