diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-05-05 20:44:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-05-05 20:44:15 +0000 |
commit | cdeead64f6602e29752e8db4d194e9fde65002f3 (patch) | |
tree | 98aa78e20fe26b170a2a19d5b9608caba31bc18a /doc | |
parent | Housekeeping. (diff) | |
download | rtems-cdeead64f6602e29752e8db4d194e9fde65002f3.tar.bz2 |
2010-05-05 Alin Rus <alin.codejunkie@gmail.com>
PR 1510/doc
* user/chains.t: Fix code example.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ChangeLog | 5 | ||||
-rwxr-xr-x | doc/user/chains.t | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index e4ca8a34ac..2730a8a255 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-05 Alin Rus <alin.codejunkie@gmail.com> + + PR 1510/doc + * user/chains.t: Fix code example. + 2010-04-22 Alin Rus <alin.codejunkie@gmail.com> * user/chain.t: Fixed the example from PR 1504. 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); |