Project

General

Profile

Bug #1947

wrong data type in mod_access.c

Added by ycheng over 10 years ago. Updated over 10 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
mod_access
Target version:
Start date:
2009-03-24
Due date:
% Done:

100%

Estimated time:
Missing in 1.5.x:

Description

mod_access.c, line 76
see
http://redmine.lighttpd.net/projects/lighttpd/repository/entry/trunk/src/mod_access.c

p->config_storage = calloc(1, srv->config_context->used * sizeof(specific_config *));

should be

p->config_storage = calloc(1, srv->config_context->used * sizeof(plugin_config *));

Associated revisions

Revision 2442 (diff)
Added by stbuehler over 10 years ago

Fix wrong pointer type in calloc (fixes #1947)

History

#1

Updated by stbuehler over 10 years ago

  • Subject changed from wrong data type in mod_access.c 1.5.0 to wrong data type in mod_access.c
  • Priority changed from Urgent to Normal
  • Target version set to 1.5.0

pointer is pointer... so it doesn't matter really.

#2

Updated by icy over 10 years ago

Hehe there's a similar ticket open. It does no harm but it should be fixed nonetheless. And be it for readability :)

#3

Updated by stbuehler over 10 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2442.

Also available in: Atom