summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--generic/tclZlib.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/generic/tclZlib.c b/generic/tclZlib.c
index c63c306..8fbe049 100644
--- a/generic/tclZlib.c
+++ b/generic/tclZlib.c
@@ -2180,7 +2180,8 @@ ZlibStreamSubcmd(
enum objIndices {
OPT_COMPRESSION_DICTIONARY = 0,
OPT_GZIP_HEADER = 1,
- OPT_COMPRESSION_LEVEL = 2
+ OPT_COMPRESSION_LEVEL = 2,
+ OPT_END = -1
};
Tcl_Obj *obj[3] = { NULL, NULL, NULL };
#define compDictObj obj[OPT_COMPRESSION_DICTIONARY]
@@ -2193,19 +2194,19 @@ ZlibStreamSubcmd(
static const OptDescriptor compressionOpts[] = {
{ "-dictionary", OPT_COMPRESSION_DICTIONARY },
{ "-level", OPT_COMPRESSION_LEVEL },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor gzipOpts[] = {
{ "-header", OPT_GZIP_HEADER },
{ "-level", OPT_COMPRESSION_LEVEL },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor expansionOpts[] = {
{ "-dictionary", OPT_COMPRESSION_DICTIONARY },
- { NULL, 0 }
+ { NULL, OPT_END }
};
static const OptDescriptor gunzipOpts[] = {
- { NULL, 0 }
+ { NULL, OPT_END }
};
const OptDescriptor *desc = NULL;
Tcl_ZlibStream zh;