summaryrefslogtreecommitdiff
path: root/runtime/libprofile
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/libprofile')
-rw-r--r--runtime/libprofile/CommonProfiling.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/libprofile/CommonProfiling.c b/runtime/libprofile/CommonProfiling.c
index 13e3eb9cf7..acc17ce11e 100644
--- a/runtime/libprofile/CommonProfiling.c
+++ b/runtime/libprofile/CommonProfiling.c
@@ -65,9 +65,10 @@ int save_arguments(int argc, const char **argv) {
for (Length = 0, i = 0; i != (unsigned)argc; ++i)
Length += strlen(argv[i])+1;
- // Defensively check for a zero length, even though this is unlikely
- // to happen in practice. This avoids calling malloc() below with a
- // size of 0.
+ /* Defensively check for a zero length, even though this is unlikely
+ * to happen in practice. This avoids calling malloc() below with a
+ * size of 0.
+ */
if (Length == 0) {
SavedArgs = 0;
SavedArgsLength = 0;