Ticket #12741: 0002-LocaleRoster.cpp-fix-gcc6-build.patch

File 0002-LocaleRoster.cpp-fix-gcc6-build.patch, 800 bytes (added by mt, 3 years ago)
  • src/kits/locale/LocaleRoster.cpp

    From 07e7833f3c97fe0141f7279e25911e50ef3d52f7 Mon Sep 17 00:00:00 2001
    From: Murai Takashi <tmurai01@gmail.com>
    Date: Mon, 2 May 2016 16:57:34 +0900
    Subject: [PATCH 2/2] LocaleRoster.cpp: fix gcc6 build
    
    ---
     src/kits/locale/LocaleRoster.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/kits/locale/LocaleRoster.cpp b/src/kits/locale/LocaleRoster.cpp
    index 1770960..57047a7 100644
    a b _InitializeCatalog(void* param)  
    541541
    542542    // load the catalog for this mimetype
    543543    entry_ref ref;
    544     if (BEntry(info.name).GetRef(&ref) == B_OK && catalog->SetTo(ref) == B_OK);
     544    if (BEntry(info.name).GetRef(&ref) == B_OK && catalog->SetTo(ref) == B_OK)
    545545        return B_OK;
    546546   
    547547    return B_ERROR;