pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-pcap/+/39190?usp=email )


Change subject: pcap-server: Use osmo_talloc_replace_string() to replace 
base-path
......................................................................

pcap-server: Use osmo_talloc_replace_string() to replace base-path

Change-Id: I9ba1b7202d3e6a06cfd6efd6ed773b53007a99c4
---
M src/osmo_server_vty.c
1 file changed, 1 insertion(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/90/39190/1

diff --git a/src/osmo_server_vty.c b/src/osmo_server_vty.c
index 3191cda..6a44da6 100644
--- a/src/osmo_server_vty.c
+++ b/src/osmo_server_vty.c
@@ -149,8 +149,7 @@
       "base-path PATH",
       "Base path for log files\n" "Path\n")
 {
-       talloc_free(pcap_server->base_path);
-       pcap_server->base_path = talloc_strdup(pcap_server, argv[0]);
+       osmo_talloc_replace_string(pcap_server, &pcap_server->base_path, 
argv[0]);
        return CMD_SUCCESS;
 }


--
To view, visit https://gerrit.osmocom.org/c/osmo-pcap/+/39190?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-Change-Id: I9ba1b7202d3e6a06cfd6efd6ed773b53007a99c4
Gerrit-Change-Number: 39190
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>

Reply via email to