diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-10-14 00:10:11 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-10-14 00:10:11 (GMT) |
commit | 48726043e2f07874e7a09a866c4cc537a65a683c (patch) | |
tree | 557e4f6cd700d131e8964d02890a6381f87e52cd /src/arch/instruction.c | |
parent | 18beadb4192144b00c06769645befb17ae1ce98e (diff) |
Forced the full definition of locations to fix the search of symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@594 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/instruction.c')
-rw-r--r-- | src/arch/instruction.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/arch/instruction.c b/src/arch/instruction.c index d9d7693..c3c32dc 100644 --- a/src/arch/instruction.c +++ b/src/arch/instruction.c @@ -663,7 +663,7 @@ bool g_arch_instruction_has_sources(const GArchInstruction *instr) /****************************************************************************** * * * Paramètres : instr = instruction dont les informations sont à consulter. * -* dests = liste des instructions de destination. [OUT] * +* srcs = liste des instructions d'origine. [OUT] * * types = liste des types de liens présents. [OUT] * * * * Description : Fournit les origines d'une instruction donnée. * @@ -674,9 +674,10 @@ bool g_arch_instruction_has_sources(const GArchInstruction *instr) * * ******************************************************************************/ -size_t g_arch_instruction_get_sources(const GArchInstruction *instr, GArchInstruction ***dests, InstructionLinkType **types) +size_t g_arch_instruction_get_sources(const GArchInstruction *instr, GArchInstruction ***srcs, InstructionLinkType **types) { - *dests = instr->from; + if (srcs != NULL) + *srcs = instr->from; if (types != NULL) *types = instr->from_types; @@ -724,7 +725,8 @@ bool g_arch_instruction_has_destinations(const GArchInstruction *instr) size_t g_arch_instruction_get_destinations(const GArchInstruction *instr, GArchInstruction ***dests, InstructionLinkType **types, link_extra_info **info) { - *dests = instr->to; + if (dests != NULL) + *dests = instr->to; if (types != NULL) *types = instr->to_types; |