From 9b72be9599b573c61c33e01817cce3803e222613 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Engstr=C3=B6m?= <adaengst@gmail.com>
Date: Sat, 20 Dec 2014 18:00:36 +0100
Subject: [PATCH 4/4] interp: Missing return value
---
sim/msp430/interp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sim/msp430/interp.c b/sim/msp430/interp.c
index 5778c89..077e6ea 100644
a
|
b
|
get_stop_addr (struct bfd *abfd) |
1880 | 1880 | storage_needed = bfd_get_symtab_upper_bound (abfd); |
1881 | 1881 | |
1882 | 1882 | if (storage_needed < 0) |
1883 | | return; |
| 1883 | return 0; |
1884 | 1884 | |
1885 | 1885 | if (storage_needed == 0) |
1886 | 1886 | { |
1887 | | return; |
| 1887 | return 0; |
1888 | 1888 | } |
1889 | 1889 | |
1890 | 1890 | symbol_table = (asymbol **) xmalloc (storage_needed); |
1891 | 1891 | number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table); |
1892 | 1892 | |
1893 | 1893 | if (number_of_symbols < 0) |
1894 | | return; |
| 1894 | return 0; |
1895 | 1895 | |
1896 | 1896 | for (i = 0; i < number_of_symbols; i++) |
1897 | 1897 | { |