X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2F__asctime.c;h=d31f63477a5591127e4311505800bfe7a4c4e604;hb=ad5759821ced59bbb70eb36d396df2a787141089;hp=18535802b8feee63d1fae7d4781b1aa64ff6f9da;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/time/__asctime.c b/src/time/__asctime.c index 18535802..d31f6347 100644 --- a/src/time/__asctime.c +++ b/src/time/__asctime.c @@ -21,7 +21,7 @@ char *__asctime(const struct tm *tm, char *buf) * application developers that they may not be so lucky * on other implementations (e.g. stack smashing..). */ - *(int*)0 = 0; + *(volatile int*)0 = 0; } return buf; }