[PR #261] [CLOSED] Fixed issue when linking with C++/CLI application #866

Open
opened 2026-01-29 20:51:17 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/google/brotli/pull/261
Author: @leidegre
Created: 11/11/2015
Status: Closed

Base: masterHead: patch-1


📝 Commits (1)

  • 635b3dc Fixed issue when linking with C++/CLI application

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 enc/encode.cc (+1 -1)

📄 Description

The Microsoft Visual C++ compiler, or specifically linker, generates an error about a possible uninitialized pointer when linking with a C++/CLI application if output is left uninitialized. This fixes that issue.

I get that this is a really minor thing but at least this way no one else needs to run into this issue if they want to use brotli in a C++/CLI project.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/google/brotli/pull/261 **Author:** [@leidegre](https://github.com/leidegre) **Created:** 11/11/2015 **Status:** ❌ Closed **Base:** `master` ← **Head:** `patch-1` --- ### 📝 Commits (1) - [`635b3dc`](https://github.com/google/brotli/commit/635b3dc1f93400b476a910413f0a1593dcaf37f2) Fixed issue when linking with C++/CLI application ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `enc/encode.cc` (+1 -1) </details> ### 📄 Description The Microsoft Visual C++ compiler, or specifically linker, generates an error about a possible uninitialized pointer when linking with a C++/CLI application if `output` is left uninitialized. This fixes that issue. I get that this is a really minor thing but at least this way no one else needs to run into this issue if they want to use brotli in a C++/CLI project. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 20:51:18 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#866