From cdeead64f6602e29752e8db4d194e9fde65002f3 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 5 May 2010 20:44:15 +0000 Subject: 2010-05-05 Alin Rus PR 1510/doc * user/chains.t: Fix code example. --- doc/user/chains.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/user/chains.t') diff --git a/doc/user/chains.t b/doc/user/chains.t index 7e005b1832..5c8e84f9c3 100755 --- a/doc/user/chains.t +++ b/doc/user/chains.t @@ -146,7 +146,7 @@ Add nodes with the following code: for (i = 0; i < count; i++) @{ foo* bar = malloc (sizeof (foo)); - if (!foo) + if (!bar) return -1; bar->data = malloc (size); @value{DIRPREFIX}chain_append (&chain, &bar->node); -- cgit v1.2.3