aboutsummaryrefslogtreecommitdiff
path: root/arch/linux/x86/processor.h
diff options
context:
space:
mode:
authorSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:43 -0500
committerSimon Quigley <tsimonq2@ubuntu.com>2017-06-19 14:38:43 -0500
commit7aeb5ac87c6105bd8fcc9b1fd12e37ba1550f587 (patch)
treecab8ef3e10d3a33a2033538b6088e107f0a86dcd /arch/linux/x86/processor.h
parenta9d469b1b48a8446dc9b9fd987b6af83a60ed796 (diff)
Import Upstream version 0.4.2.2
Diffstat (limited to 'arch/linux/x86/processor.h')
-rw-r--r--arch/linux/x86/processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/linux/x86/processor.h b/arch/linux/x86/processor.h
index 918bac7c..fd8711af 100644
--- a/arch/linux/x86/processor.h
+++ b/arch/linux/x86/processor.h
@@ -264,7 +264,7 @@ gchar *processor_get_capabilities_from_flags(gchar * strflags)
* - Use binary search or something faster than this O(n) cruft
*/
gchar **flags, **old;
- gchar *tmp = "";
+ gchar *tmp = NULL;
gint i, j = 0;
flags = g_strsplit(strflags, " ", 0);
@@ -279,7 +279,7 @@ gchar *processor_get_capabilities_from_flags(gchar * strflags)
}
}
- tmp = g_strdup_printf("%s%s=%s\n", tmp, flags[j], meaning);
+ tmp = h_strdup_cprintf("%s=%s\n", tmp, flags[j], meaning);
j++;
}