aboutsummaryrefslogtreecommitdiffstats
path: root/dispose_cmd.c
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>1997-06-05 14:59:13 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:50 +0000
commitd166f048818e10cf3799aa24a174fb22835f1acc (patch)
tree1ca27f9243900f8b236d0cde6a3862002aea9e19 /dispose_cmd.c
parentccc6cda312fea9f0468ee65b8f368e9653e1380b (diff)
downloadandroid_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.tar.gz
android_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.tar.bz2
android_external_bash-d166f048818e10cf3799aa24a174fb22835f1acc.zip
Imported from ../bash-2.01.tar.gz.
Diffstat (limited to 'dispose_cmd.c')
-rw-r--r--dispose_cmd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dispose_cmd.c b/dispose_cmd.c
index 86443f1..d0b6bbd 100644
--- a/dispose_cmd.c
+++ b/dispose_cmd.c
@@ -175,18 +175,24 @@ dispose_words (list)
}
}
-/* How to dispose of an array of pointers to char. */
+#ifdef INCLUDE_UNUSED
+/* How to dispose of an array of pointers to char. This is identical to
+ free_array in stringlib.c. */
void
dispose_word_array (array)
char **array;
{
register int count;
+ if (array == 0)
+ return;
+
for (count = 0; array[count]; count++)
free (array[count]);
free (array);
}
+#endif
/* How to dispose of an list of redirections. A REDIRECT. */
void