Ticket #11715: 0001-ICNSLoader-fix-stray-semicolon.patch

File 0001-ICNSLoader-fix-stray-semicolon.patch, 914 bytes (added by Timothy_Gu, 7 years ago)

Patch

  • src/add-ons/translators/icns/ICNSLoader.cpp

    From 972da5115211d1236fdffbf6716d7b52d8351f79 Mon Sep 17 00:00:00 2001
    From: Timothy Gu <timothygu99@gmail.com>
    Date: Tue, 6 Jan 2015 19:19:52 -0800
    Subject: [PATCH] ICNSLoader: fix stray semicolon
    
    Fixes CID 991576.
    ---
     src/add-ons/translators/icns/ICNSLoader.cpp | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/add-ons/translators/icns/ICNSLoader.cpp b/src/add-ons/translators/icns/ICNSLoader.cpp
    index b17d1ff..2bafc48 100644
    a b ICNSSaver::SaveData(BPositionIO *target)  
    305305    icns_byte_t *dataPtrOut;
    306306    icns_export_family_data(fIconFamily, &dataSize, &dataPtrOut);
    307307    if (dataSize != 0 && dataPtrOut != NULL) {
    308         if (target->Write(dataPtrOut, dataSize) == dataSize);
     308        if (target->Write(dataPtrOut, dataSize) == dataSize)
    309309            return B_OK;
    310310    }
    311311    return B_ERROR;