The statement under "if (style_file)" in the else branch of
"if (make_pack)" will never be executed because getstyle already
prints out a help message and exits before that.

So remove that code.

Signed-off-by: Carlos R. Mafra <[email protected]>
---
 util/getstyle.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/util/getstyle.c b/util/getstyle.c
index 80c219e..9bcf87e 100644
--- a/util/getstyle.c
+++ b/util/getstyle.c
@@ -403,11 +403,7 @@ int main(int argc, char **argv)
                WMWritePropListToFile(style, path);
                wfree(path);
        } else {
-               if (style_file) {
-                       WMWritePropListToFile(style, style_file);
-               } else {
-                       puts(WMGetPropListDescription(style, True));
-               }
+               puts(WMGetPropListDescription(style, True));
        }
        return 0;
 }
-- 
1.7.3.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to