Avoid redundant initialization of hex table.

* src/lib/hex.c (hex_init): Avoid redundant initialization.


git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1950 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Jie Zhang 14 years ago
parent a19e4b8f12
commit 50e84d8661

@ -13,6 +13,8 @@
* src/global/data_dir.c (make_relative_prefix): Don't declare.
Include libiberty.h.
* src/lib/hex.c (hex_init): Avoid redundant initialization.
2011-06-30 Mike Frysinger <vapier@gentoo.org>
* cmd/cmd_initbus.c (cmd_initbus_complete): Complete bus parameters too.

@ -159,8 +159,14 @@ void
hex_init (void)
{
#ifndef HEX_TABLE_INITIALIZED
static bool inited;
int i;
if (inited)
return;
inited = true;
for (i=0; i<_hex_array_size; i++)
{
switch (i)

Loading…
Cancel
Save