diff options
author | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:39:23 +0000 |
---|---|---|
committer | Daniel Baumann <mail@daniel-baumann.ch> | 2015-11-08 04:39:23 +0000 |
commit | f848ee46f69e6a829fce8f4db09e4b0621a7b9b3 (patch) | |
tree | abbeb9f5c041901786016188c1b8d5051c2643d9 /rc.cc | |
parent | Adding debian version 1.3~rc1-1. (diff) | |
download | zutils-f848ee46f69e6a829fce8f4db09e4b0621a7b9b3.tar.xz zutils-f848ee46f69e6a829fce8f4db09e4b0621a7b9b3.zip |
Merging upstream version 1.3.
Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
Diffstat (limited to '')
-rw-r--r-- | rc.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* Zutils - Utilities dealing with compressed files - Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 Antonio Diaz Diaz. + Copyright (C) 2009-2014 Antonio Diaz Diaz. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -227,7 +227,8 @@ void parse_compressor( const std::string & arg, const int format_index, const char * get_compressor_name( const int format_index ) { if( format_index >= 0 && format_index < num_formats && - compressor_names[format_index].size() ) + compressor_names[format_index].size() && + compressor_names[format_index][0] != '-' ) return compressor_names[format_index].c_str(); return 0; } |