From 059529e685e059d366ee56aa6117ee0d4e899e66 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 21 Jul 2016 10:15:02 +0200 Subject: score: Add debug support to chains This helps to detect * double insert, append, prepend errors, and * get from empty chain errors. --- cpukit/libcsupport/src/sup_fs_location.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/libcsupport/src/sup_fs_location.c') diff --git a/cpukit/libcsupport/src/sup_fs_location.c b/cpukit/libcsupport/src/sup_fs_location.c index ddda4d15eb..2b8126ee8b 100644 --- a/cpukit/libcsupport/src/sup_fs_location.c +++ b/cpukit/libcsupport/src/sup_fs_location.c @@ -48,6 +48,7 @@ rtems_filesystem_location_info_t *rtems_filesystem_location_copy( dst->node_access_2 = src->node_access_2; dst->handlers = src->handlers; dst->mt_entry = src->mt_entry; + rtems_chain_initialize_node(&dst->mt_entry_node); rtems_filesystem_location_add_to_mt_entry(dst); return dst; -- cgit v1.2.3