X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Ftime%2F__asctime.c;h=d31f63477a5591127e4311505800bfe7a4c4e604;hp=18535802b8feee63d1fae7d4781b1aa64ff6f9da;hb=71a80c5767aa4e6b7cbc2b58feef3cfca76e29fe;hpb=da88b16a221c9d327e1bfa61dd6f4f08dacce57a;ds=sidebyside 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; }