diff options
Diffstat (limited to 'src/dialogs/gotox.c')
-rw-r--r-- | src/dialogs/gotox.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dialogs/gotox.c b/src/dialogs/gotox.c index 33664d7..01d18f8 100644 --- a/src/dialogs/gotox.c +++ b/src/dialogs/gotox.c @@ -335,7 +335,16 @@ static void add_new_location_to_list(GtkTreeStore *store, GLoadedBinary *binary, { label = g_binary_symbol_get_label(symbol); - name = make_symbol_offset(label, diff); + /** + * Un symbole ne possède pas toujours d'étiquette. + * C'est le cas par exemple pour les valeurs chargées par + * les instructions ARM de type 'ldr'. + */ + if (label == NULL) + name = strdup(_("<no symbol found>")); + + else + name = make_symbol_offset(label, diff); } else |