Skip to content

Commit

Permalink
Did some extra cleanups for readibility
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkie committed Apr 6, 2013
1 parent 4163dbb commit ff84143
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cherokee/handler_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,6 @@ cherokee_handler_file_add_headers (cherokee_handler_file_t *fhdl,
{
ret_t ret;
char bufstr[DTM_SIZE_GMTTM_STR];
struct tm modified_tm;
size_t szlen = 0;
off_t content_length = 0;
cherokee_connection_t *conn = HANDLER_CONN(fhdl);
Expand All @@ -687,7 +686,6 @@ cherokee_handler_file_add_headers (cherokee_handler_file_t *fhdl,

/* Regular request
*/
memset (&modified_tm, 0, sizeof(struct tm));

/* ETag: "<etag>"
*/
Expand All @@ -704,6 +702,9 @@ cherokee_handler_file_add_headers (cherokee_handler_file_t *fhdl,
/* Last-Modified:
*/
if (!(fhdl->not_modified)) {
struct tm modified_tm;

memset (&modified_tm, 0, sizeof(struct tm));
cherokee_gmtime (&fhdl->info->st_mtime, &modified_tm);

szlen = cherokee_dtm_gmttm2str(bufstr, DTM_SIZE_GMTTM_STR, &modified_tm);
Expand Down

0 comments on commit ff84143

Please sign in to comment.