summaryrefslogtreecommitdiff
path: root/mimetypes/grammar.y
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2018-01-13 12:45:55 +0100
committerSergey Poznyakoff <gray@gnu.org.ua>2018-01-13 12:45:55 +0100
commitd2765b90ce67a26db4ff980842f0a0f3dc37d546 (patch)
treed2f8f20a06a5bfe27fc2e76bdef7324bad07c6f0 /mimetypes/grammar.y
parent0a7b600cc7903de58177499f699c25e0ae34369f (diff)
downloadfileserv-d2765b90ce67a26db4ff980842f0a0f3dc37d546.tar.gz
fileserv-d2765b90ce67a26db4ff980842f0a0f3dc37d546.tar.bz2
Bugfixes
* mimetypes/err.c (print_locus_range): Fix output length. * mimetypes/grammar.y (rule_line): Initialize locus range. * mimetypes/prloc.c (locus_range_format): Fix memory overrun; terminate output with null byte. * src/fileserv.c: New option -i (index page).
Diffstat (limited to 'mimetypes/grammar.y')
-rw-r--r--mimetypes/grammar.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/mimetypes/grammar.y b/mimetypes/grammar.y
index 442ba84..1864289 100644
--- a/mimetypes/grammar.y
+++ b/mimetypes/grammar.y
@@ -134,6 +134,7 @@ rule_line: /* empty */
if (!p)
mimetypes_nomem ();
LLE_APPEND (&rule_list, p, link);
+ locus_range_init (&p->loc);
p->type = $1.ptr;
p->node = $2;
p->priority = $3;

Return to:

Send suggestions and report system problems to the System administrator.