summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-05-12 06:30:33 (GMT)
committerRoss Lagerwall <rosslagerwall@gmail.com>2012-05-12 06:30:33 (GMT)
commit4d688e3275d5a10e2321571392cdc31945bb8a89 (patch)
tree3c57077fbd1e80bdad6030fe878a7e5b470dc2f3
parent1ff2e35e8404a7775790e2767c117a1c44a7b3d7 (diff)
downloadcpython-4d688e3275d5a10e2321571392cdc31945bb8a89.zip
cpython-4d688e3275d5a10e2321571392cdc31945bb8a89.tar.gz
cpython-4d688e3275d5a10e2321571392cdc31945bb8a89.tar.bz2
Remove uninitialized compiler warning.
-rw-r--r--Modules/_lzmamodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/_lzmamodule.c b/Modules/_lzmamodule.c
index 8ea3d01..029d4dd 100644
--- a/Modules/_lzmamodule.c
+++ b/Modules/_lzmamodule.c
@@ -412,7 +412,11 @@ build_filter_spec(const lzma_filter *f)
ADD_FIELD(options, lc);
ADD_FIELD(options, lp);
ADD_FIELD(options, pb);
- case LZMA_FILTER_LZMA2:
+ ADD_FIELD(options, dict_size);
+ break;
+ }
+ case LZMA_FILTER_LZMA2: {
+ lzma_options_lzma *options = f->options;
ADD_FIELD(options, dict_size);
break;
}