Mercurial > hg > dmlib
comparison tools/lib64fmts.c @ 2526:4deb8da6c901
Initialize result variable.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 15 May 2020 07:46:14 +0300 |
parents | 19b0ca169361 |
children | 5f76cf36e5c5 |
comparison
equal
deleted
inserted
replaced
2525:19b0ca169361 | 2526:4deb8da6c901 |
---|---|
342 | 342 |
343 | 343 |
344 static int fmtEncodeSupeRes(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) | 344 static int fmtEncodeSupeRes(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) |
345 { | 345 { |
346 DMSupeResEncCtx ctx; | 346 DMSupeResEncCtx ctx; |
347 BOOL bres; | 347 BOOL bres = FALSE; |
348 | 348 |
349 // Output magic header and data type | 349 // Output magic header and data type |
350 if (!dmGrowBufPut(buf, fmtSupeRes_MagicID_1, sizeof(fmtSupeRes_MagicID_1)) || | 350 if (!dmGrowBufPut(buf, fmtSupeRes_MagicID_1, sizeof(fmtSupeRes_MagicID_1)) || |
351 !dmGrowBufPutU8(buf, fmt->extra)) | 351 !dmGrowBufPutU8(buf, fmt->extra)) |
352 { | 352 { |