]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: use xalloc libs
authorDave Reisner <d@falconindy.com>
Tue, 20 Dec 2011 13:36:03 +0000 (08:36 -0500)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Jan 2012 12:53:38 +0000 (13:53 +0100)
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
sys-utils/lscpu.c

index 72b56d27d6ab24f78d14c42467b2b0c8ee0fea9c..0a7841d1f589029fb4c223b9458cf03a85987bc7 100644 (file)
@@ -363,9 +363,9 @@ read_basicinfo(struct lscpu_desc *desc, struct lscpu_modifier *mod)
        if (desc->flags) {
                snprintf(buf, sizeof(buf), " %s ", desc->flags);
                if (strstr(buf, " svm "))
-                       desc->virtflag = strdup("svm");
+                       desc->virtflag = xstrdup("svm");
                else if (strstr(buf, " vmx "))
-                       desc->virtflag = strdup("vmx");
+                       desc->virtflag = xstrdup("vmx");
                if (strstr(buf, " lm "))
                        desc->mode |= MODE_32BIT | MODE_64BIT;          /* x86_64 */
                if (strstr(buf, " zarch "))