summaryrefslogtreecommitdiff
path: root/examples/printcpu.c
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2007-02-14 05:28:27 +0000
committerDavid Schleef <ds@schleef.org>2007-02-14 05:28:27 +0000
commitf56af53cb93b812fa944c04ec760b866ee454ed0 (patch)
tree063a32c03b345642ca00de3ed34b5677fafecc52 /examples/printcpu.c
parent90b6d0c8e95b0cc5dda963146b2ca22b526efe34 (diff)
downloadliboil-f56af53cb93b812fa944c04ec760b866ee454ed0.tar.gz
* examples/printcpu.c:
* testsuite/stack_align.c: Fix minor errors on Solaris. Fixed #9824.
Diffstat (limited to 'examples/printcpu.c')
-rw-r--r--examples/printcpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/printcpu.c b/examples/printcpu.c
index bd51a2f..a93b539 100644
--- a/examples/printcpu.c
+++ b/examples/printcpu.c
@@ -57,7 +57,9 @@ string_append (char *str, const char *append)
static char *
oil_cpu_flags_to_string (unsigned int flags)
{
- char *ret = NULL;
+ char *ret;
+
+ ret = strdup ("");
#if defined(__i386__) || defined(__amd64__)
if (flags & OIL_IMPL_FLAG_CMOV)