Change in libosmocore[master]: vty/command.c: talloc from tall_vty_cmd_ctx, not NULL

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Jul 11 13:56:34 UTC 2018


Neels Hofmeyr has submitted this change and it was merged. ( https://gerrit.osmocom.org/9937 )

Change subject: vty/command.c: talloc from tall_vty_cmd_ctx, not NULL
......................................................................

vty/command.c: talloc from tall_vty_cmd_ctx, not NULL

Change-Id: Iaa409b4f63557c8fb028bbb322b5e7253393c05c
---
M src/vty/command.c
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Pau Espin Pedrol: Looks good to me, approved



diff --git a/src/vty/command.c b/src/vty/command.c
index 66cf6a8..689609c 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -514,7 +514,7 @@
 		}
 	}
 
-	out = talloc_size(NULL, len + 1);
+	out = talloc_size(tall_vty_cmd_ctx, len + 1);
 	if (!out)
 		return NULL;
 
@@ -574,7 +574,7 @@
 		}
 	}
 
-	out = talloc_size(NULL, len + 1);
+	out = talloc_size(tall_vty_cmd_ctx, len + 1);
 	if (!out)
 		return NULL;
 
@@ -1317,7 +1317,7 @@
 		return NULL;
 
 	/* tmp will hold a string of len-2 chars, so 'len' size is fine */
-	tmp = talloc_size(NULL, len);
+	tmp = talloc_size(tall_vty_cmd_ctx, len);
 
 	memcpy(tmp, (str + 1), len - 2);
 	tmp[len - 2] = '\0';

-- 
To view, visit https://gerrit.osmocom.org/9937
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Iaa409b4f63557c8fb028bbb322b5e7253393c05c
Gerrit-Change-Number: 9937
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180711/89e1afa4/attachment.htm>


More information about the gerrit-log mailing list