Ticket #11747: 0001-CID-30948-Missing-break-in-switch-Added.patch

File 0001-CID-30948-Missing-break-in-switch-Added.patch, 859 bytes (added by sli908, 10 years ago)

Patch that adds the missing break statement

  • src/bin/gdb/libiberty/regex.c

    From 6f503539874c358bd9a78296febd4d3129ee8216 Mon Sep 17 00:00:00 2001
    From: Sid Kurella <mastersidkurella@gmail.com>
    Date: Mon, 12 Jan 2015 18:48:30 -0500
    Subject: [PATCH] CID 30948: Missing break in switch - Added
    
    ---
     src/bin/gdb/libiberty/regex.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/bin/gdb/libiberty/regex.c b/src/bin/gdb/libiberty/regex.c
    index 522b0ee..8990916 100644
    a b PREFIX(regex_compile) (ARG_PREFIX(pattern), ARG_PREFIX(size), syntax, bufp)  
    25262526        case '?':
    25272527          if ((syntax & RE_BK_PLUS_QM)
    25282528              || (syntax & RE_LIMITED_OPS))
    2529             goto normal_char;
     2529            goto normal_char; break;
    25302530        handle_plus:
    25312531        case '*':
    25322532          /* If there is no previous pattern... */