aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-01 15:34:40 -0500
committerMike Frysinger <vapier@gentoo.org>2009-02-01 15:34:40 -0500
commit920b65fa516e0430258d2b9d7c64f6a82efbe655 (patch)
tree4ff05bc87001b00413ffab2cfc06dc7cc597d786 /libsbutil
parentsandbox: convert remaining perror to sb_pwarn (diff)
downloadsandbox-920b65fa516e0430258d2b9d7c64f6a82efbe655.tar.gz
sandbox-920b65fa516e0430258d2b9d7c64f6a82efbe655.tar.bz2
sandbox-920b65fa516e0430258d2b9d7c64f6a82efbe655.zip
sandbox/libsbutil: remove more useless error checks and var inits
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsbutil')
-rw-r--r--libsbutil/include/rcscripts/util/str_list.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/libsbutil/include/rcscripts/util/str_list.h b/libsbutil/include/rcscripts/util/str_list.h
index 3b5b93d..7039a01 100644
--- a/libsbutil/include/rcscripts/util/str_list.h
+++ b/libsbutil/include/rcscripts/util/str_list.h
@@ -32,10 +32,6 @@
} \
/* Amount of entries + new + terminator */ \
_tmp_p = xrealloc (_string_list, sizeof (char *) * (_i + 2)); \
- if (NULL == _tmp_p) \
- { \
- goto _error; \
- } \
_string_list = _tmp_p; \
_string_list[_i] = _item; \
/* Terminator */ \
@@ -59,16 +55,8 @@
} \
/* Amount of entries + new + terminator */ \
_tmp_p = xrealloc (_string_list, sizeof (char *) * (_i + 2)); \
- if (NULL == _tmp_p) \
- { \
- goto _error; \
- } \
_string_list = _tmp_p; \
_tmp_str = xstrdup (_item); \
- if (NULL == _tmp_str) \
- { \
- goto _error; \
- } \
_string_list[_i] = _tmp_str; \
/* Terminator */ \
_string_list[_i+1] = NULL; \
@@ -92,10 +80,6 @@
} \
/* Amount of entries + new + terminator */ \
_tmp_p = xrealloc (_string_list, sizeof (char *) * (_i + 2)); \
- if (NULL == _tmp_p) \
- { \
- goto _error; \
- } \
_string_list = _tmp_p; \
if (0 == _i) \
{ \