summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
Diffstat (limited to 'src/format')
-rw-r--r--src/format/symbol.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 3a909b4..5e66c54 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -221,10 +221,17 @@ const char *g_binary_symbol_to_string(const GBinSymbol *symbol)
{
const char *result; /* Désignation à retourner */
- if (symbol->extra.routine != NULL)
- result = g_binary_routine_get_name(symbol->extra.routine);
+ switch (symbol->type)
+ {
+ case STP_ROUTINE:
+ result = g_binary_routine_get_name(symbol->extra.routine);
+ break;
- else result = (symbol->alt != NULL ? symbol->alt : symbol->name);
+ default:
+ result = (symbol->alt != NULL ? symbol->alt : symbol->name);
+ break;
+
+ }
return result;