Ticket #46291: 0004-interp-Missing-return-value.patch

File 0004-interp-Missing-return-value.patch, 939 bytes (added by adreg@…, 9 years ago)
  • sim/msp430/interp.c

    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) 
    18801880  storage_needed = bfd_get_symtab_upper_bound (abfd);
    18811881
    18821882  if (storage_needed < 0)
    1883     return;
     1883    return 0;
    18841884
    18851885  if (storage_needed == 0)
    18861886    {
    1887       return;
     1887      return 0;
    18881888    }
    18891889
    18901890  symbol_table = (asymbol **) xmalloc (storage_needed);
    18911891  number_of_symbols = bfd_canonicalize_symtab (abfd, symbol_table);
    18921892
    18931893  if (number_of_symbols < 0)
    1894     return;
     1894    return 0;
    18951895
    18961896  for (i = 0; i < number_of_symbols; i++)
    18971897    {