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/sim/msp430/interp.c
+++ b/sim/msp430/interp.c
@@ -1880,18 +1880,18 @@ get_stop_addr (struct bfd *abfd)
   storage_needed = bfd_get_symtab_upper_bound (abfd);
 
   if (storage_needed < 0)
-    return;
+    return 0;
 
   if (storage_needed == 0)
     {
-      return;
+      return 0;
     }
 
   symbol_table = (asymbol **) xmalloc (storage_needed);
   number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
 
   if (number_of_symbols < 0)
-    return;
+    return 0;
 
   for (i = 0; i < number_of_symbols; i++)
     {
-- 
2.1.2

