summaryrefslogtreecommitdiffstats
path: root/sesman
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-06-21 16:30:17 -0700
committerPavel Roskin <plroskin@gmail.com>2016-07-08 04:27:07 +0000
commit951e6327576988251a9a479494e20d605efaad71 (patch)
treed85c703e652ca84a03d13d36228c2df3c9ab9329 /sesman
parentb00ca6e03d856398624b9f2b2cc19f2ab867aa66 (diff)
downloadxrdp-proprietary-951e6327576988251a9a479494e20d605efaad71.tar.gz
xrdp-proprietary-951e6327576988251a9a479494e20d605efaad71.zip
Make program_name constant, don't duplicate or free it
Diffstat (limited to 'sesman')
-rw-r--r--sesman/tools/sesadmin.c2
-rw-r--r--sesman/tools/sestest.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sesman/tools/sesadmin.c b/sesman/tools/sesadmin.c
index 3ee230a5..98f727e6 100644
--- a/sesman/tools/sesadmin.c
+++ b/sesman/tools/sesadmin.c
@@ -59,7 +59,7 @@ int main(int argc, char **argv)
serv[0] = '\0';
port[0] = '\0';
- logging.program_name = g_strdup("sesadmin");
+ logging.program_name = "sesadmin";
logging.log_file = g_strdup("xrdp-sesadmin.log");
logging.log_level = LOG_LEVEL_DEBUG;
logging.enable_syslog = 0;
diff --git a/sesman/tools/sestest.c b/sesman/tools/sestest.c
index 0653355c..17795dfc 100644
--- a/sesman/tools/sestest.c
+++ b/sesman/tools/sestest.c
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
log.enable_syslog = 0;
log.log_level = 99;
- log.program_name = g_strdup("sestest");
+ log.program_name = "sestest";
log.log_file = g_strdup("sestest.log");
log_start_from_param(&log);
scp_init();