summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortjg <tjg>2001-10-12 09:28:21 +0000
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:23:20 +0100
commit46f562d0552458b4cf13a11dd342080f73852f09 (patch)
tree469a54c7f2b9f3afd13cb69d85707a5bf24ce952
parent49d21f8fe6bc2bf7f44e83c2c8a74bcfc936952f (diff)
add assertion
-rw-r--r--footobar.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/footobar.c b/footobar.c
index f256b4b..4430c05 100644
--- a/footobar.c
+++ b/footobar.c
@@ -236,6 +236,7 @@ extern List *parse_var(char *extdef) {
first = last = NULL;
begin = strchr(extdef, '=');
+ assert(begin); /* guaranteed by initenv() */
while (*begin) {
++begin;
end = begin;