Fix compiling with -Werror.
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 2 Jun 2010 20:13:55 +0000 (23:13 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 2 Jun 2010 20:13:55 +0000 (23:13 +0300)
src/xz/message.c

index ad93573..6eed5f7 100644 (file)
@@ -912,8 +912,8 @@ message_filters_to_str(const lzma_filter *filters, bool all_known)
                case LZMA_FILTER_LZMA1:
                case LZMA_FILTER_LZMA2: {
                        const lzma_options_lzma *opt = filters[i].options;
-                       const char *mode;
-                       const char *mf;
+                       const char *mode = NULL;
+                       const char *mf = NULL;
 
                        if (all_known) {
                                switch (opt->mode) {