projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b56599
)
Fix sizeof
author
Dennis Schafroth
<dennis@indexdata.com>
Mon, 30 Apr 2012 12:03:14 +0000
(12:03 +0000)
committer
Dennis Schafroth
<dennis@indexdata.com>
Mon, 30 Apr 2012 12:03:14 +0000
(12:03 +0000)
src/pazpar2_config.c
patch
|
blob
|
history
diff --git
a/src/pazpar2_config.c
b/src/pazpar2_config.c
index
ab4382b
..
0a67bee
100644
(file)
--- a/
src/pazpar2_config.c
+++ b/
src/pazpar2_config.c
@@
-138,7
+138,7
@@
struct conf_service *service_init(struct conf_server *server,
// Setup a dictionary from server.
service->dictionary = 0;
- service->settings = nmem_malloc(nmem, sizeof(struct settings));
+ service->settings = nmem_malloc(nmem, sizeof(*service->settings));
service->settings->num_settings = PZ_MAX_EOF;
service->settings->settings = nmem_malloc(nmem, sizeof(struct setting*) * service->settings->num_settings);
memset(service->settings->settings, 0, sizeof(struct setting*) * service->settings->num_settings);