commit 7973c87ef4efa12816a3b5a1e170653712a98c16 Author: Sylvain Munaut Date: Wed Nov 7 17:39:35 2012 +0100 rgw: Use re-entrant gmtime_r instead of gmtime in dump_last_modified Signed-off-by: Sylvain Munaut diff --git a/src/rgw/rgw_rest.cc b/src/rgw/rgw_rest.cc index fb55f34..9d7051b 100644 --- a/src/rgw/rgw_rest.cc +++ b/src/rgw/rgw_rest.cc @@ -160,7 +160,8 @@ void dump_last_modified(struct req_state *s, time_t t) { char timestr[TIME_BUF_SIZE]; - struct tm *tmp = gmtime(&t); + struct tm result; + struct tm *tmp = gmtime_r(&t, &result); if (tmp == NULL) return;