Code Review
/
ric-plt
/
lib
/
rmr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add first set of SI95 unit tests and health check
[ric-plt/lib/rmr.git]
/
src
/
rmr
/
common
/
src
/
symtab.c
diff --git
a/src/rmr/common/src/symtab.c
b/src/rmr/common/src/symtab.c
index
8b94a41
..
a105187
100644
(file)
--- a/
src/rmr/common/src/symtab.c
+++ b/
src/rmr/common/src/symtab.c
@@
-470,11
+470,13
@@
extern void rmr_sym_foreach_class( void *vst, unsigned int class, void (* user_f
if( st && (list = st->symlist) != NULL && user_fun != NULL )
for( i = 0; i < st->size; i++ )
if( st && (list = st->symlist) != NULL && user_fun != NULL )
for( i = 0; i < st->size; i++ )
- for( se = list[i]; se; se = next ) /* using next allows user to delet via this */
+ for( se = list[i]; se; se = next ) /* using next allows user to delet
e
via this */
{
{
- next = se->next;
- if( class == se->class ) {
- user_fun( st, se, se->name, se->val, user_data );
+ if( se ) {
+ next = se->next;
+ if( class == se->class ) {
+ user_fun( st, se, se->name, se->val, user_data );
+ }
}
}
}
}
}
}