summaryrefslogtreecommitdiffstats
path: root/runtime/string.h
diff options
context:
space:
mode:
authorwcohen <wcohen>2006-04-05 17:16:00 +0000
committerwcohen <wcohen>2006-04-05 17:16:00 +0000
commitd556e7d7f48a449b4be6e8174428219ae71a30b2 (patch)
tree4b5fa5079413c5b1bd9d5a298e6aa605954a5621 /runtime/string.h
parente3c778d0ac220932c22c9aabc056f6f7351e742b (diff)
downloadsystemtap-steved-d556e7d7f48a449b4be6e8174428219ae71a30b2.tar.gz
systemtap-steved-d556e7d7f48a449b4be6e8174428219ae71a30b2.tar.xz
systemtap-steved-d556e7d7f48a449b4be6e8174428219ae71a30b2.zip
Correct the initialization to work with gcc 4.1.
Diffstat (limited to 'runtime/string.h')
-rw-r--r--runtime/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/string.h b/runtime/string.h
index e4268197..3ebf555c 100644
--- a/runtime/string.h
+++ b/runtime/string.h
@@ -29,7 +29,7 @@ static struct string _stp_string[STP_NUM_STRINGS][NR_CPUS];
typedef struct string *String;
/* set up a special stdout string */
-static struct string __stp_stdout = {0};
+static struct string __stp_stdout = {.len = 0};
String _stp_stdout = &__stp_stdout;
void _stp_vsprintf (String str, const char *fmt, va_list args);