From c33c7813f27a42ade864237d4c941e53f6d1b64ab47ba91b7403d90e7dff084c Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Tue, 2 Oct 2012 17:32:58 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=35 --- man-db-2.6.3-zio.dif | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/man-db-2.6.3-zio.dif b/man-db-2.6.3-zio.dif index f2e9058..2bf818c 100644 --- a/man-db-2.6.3-zio.dif +++ b/man-db-2.6.3-zio.dif @@ -125,21 +125,21 @@ +#ifdef HAVE_ZIO + ext = strrchr (filename, '.'); + if (ext) { -+ char opt[2] = {'\0', '\0'}; ++ const char *opt; + char *name; + + if (STREQ (ext, ".gz")) -+ *opt = 'g'; ++ opt = "g"; + else if (STREQ (ext, ".z")) -+ *opt = 'z'; ++ opt = "z"; + else if (STREQ (ext, ".bz2")) -+ *opt = 'b'; ++ opt = "b"; + else if (STREQ (ext, ".xz")) -+ *opt = 'x'; ++ opt = "x"; + else if (STREQ (ext, ".lzma")) -+ *opt = 'l'; ++ opt = "l"; + else if (STREQ (ext, ".Z")) -+ *opt = 'Z'; ++ opt = "Z"; + else + goto nozio; +