diff options
author | 2011-02-13 09:55:06 +0000 | |
---|---|---|
committer | 2011-02-13 09:55:06 +0000 | |
commit | 5a87aae82ff5388635438123a8d44ca20b1b0164 (patch) | |
tree | 370b4fc5d2ad62704aa8d04fa77de5411b052e17 /quse.c | |
parent | add basic version tests for PN with trailing number and single letter (diff) | |
download | portage-utils-5a87aae82ff5388635438123a8d44ca20b1b0164.tar.gz portage-utils-5a87aae82ff5388635438123a8d44ca20b1b0164.tar.bz2 portage-utils-5a87aae82ff5388635438123a8d44ca20b1b0164.zip |
Remove bogus assert
quse.c:348: warning: the address of 'buf0' will never be NULL
The compiler correctly sees that buf0 is declared on the stack as an
array, and hence can't be NULL.
Diffstat (limited to 'quse.c')
-rw-r--r-- | quse.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2010 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.61 2010/08/11 17:19:39 vapier Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/quse.c,v 1.62 2011/02/13 09:55:06 grobian Exp $ * * Copyright 2005-2010 Ned Ludd - <solar@gentoo.org> * Copyright 2005-2010 Mike Frysinger - <vapier@gentoo.org> @@ -35,7 +35,7 @@ static const char *quse_opts_help[] = { "Only show package name", COMMON_OPTS_HELP }; -static const char quse_rcsid[] = "$Id: quse.c,v 1.61 2010/08/11 17:19:39 vapier Exp $"; +static const char quse_rcsid[] = "$Id: quse.c,v 1.62 2011/02/13 09:55:06 grobian Exp $"; #define quse_usage(ret) usage(ret, QUSE_FLAGS, quse_long_opts, quse_opts_help, lookup_applet_idx("quse")) int quse_describe_flag(int ind, int argc, char **argv); @@ -349,7 +349,6 @@ int quse_main(int argc, char **argv) } } else { remove_extra_space(buf0); - assert(buf0 != NULL); strcpy(buf1, &buf0[search_len+1]); for (i = (size_t) optind; i < argc && argv[i] != NULL; i++) { |