Skip to content
This repository has been archived by the owner on Nov 19, 2022. It is now read-only.

allocate the correct sizes #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

markusbeth
Copy link

This is indeed a noop as gchar* and gchar** are both pointers and therefore have the same length. But allocating memory of size sizeof(T) to save the resulting pointer in a T* variable seems the natural way.
This fixes complaints of ccc-analyzer/llvm.
A befit of using the correct types is that you no longer need the cast in mono-io-portability.c as the g_new0 macro now already returns the wanted type.

This is indeed a noop as gchar* and gchar** are both pointers and
therefore have the same length.
Base automatically changed from master to main March 15, 2021 16:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant