Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure that lfields[] is fully initialized.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 22 May 2012 11:58:37 +0000 (13:58 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 22 May 2012 12:11:24 +0000 (14:11 +0200)
commitd34cb01da6a26cc35b4cd0cce1c8c3a62094e894
treec6202aa8df16b2615932e16fc509b0d0fe7ed355
parent3823e54e6b0da3c0b213c3ba1537befca354d647
Ensure that lfields[] is fully initialized.

Fixes compilation error:

In file included from .../src/xbt/mmalloc/mm.c:24:0:
.../src/xbt/mmalloc/mm_diff.c: In function ‘get_addr_memory_map’:
.../src/xbt/mmalloc/mm_diff.c:373:9: error: ‘lfields[5]’ may be used uninitialized in this function [-Werror=uninitialized]
cc1: all warnings being treated as errors

In fact, once strtok returns NULL, subsequent searches with the same parameters
return NULL too.
src/xbt/mmalloc/mm_diff.c