mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 11:10:09 +01:00
libnm-core: replace malloc() with g_malloc()
For consistency with the rest of the code, prefer g_malloc() over
malloc().
(cherry picked from commit 966e3341a6)
This commit is contained in:
parent
9f23a18124
commit
f8a74684f4
1 changed files with 1 additions and 1 deletions
|
|
@ -5444,7 +5444,7 @@ attribute_escape (const char *src, char c1, char c2)
|
|||
{
|
||||
char *ret, *dest;
|
||||
|
||||
dest = ret = malloc (strlen (src) * 2 + 1);
|
||||
dest = ret = g_malloc (strlen (src) * 2 + 1);
|
||||
|
||||
while (*src) {
|
||||
if (*src == c1 || *src == c2 || *src == '\\')
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue