Merge pull request #485 from proski/code-standards

Code standards
This commit is contained in:
metalefty 2016-11-16 17:05:21 +09:00 committed by GitHub
commit b89956d06e
3 changed files with 9 additions and 9 deletions

View File

@ -1400,7 +1400,7 @@ get_log_path()
log_path = g_getenv("XDG_DATA_HOME"); log_path = g_getenv("XDG_DATA_HOME");
if (log_path != 0) if (log_path != 0)
{ {
cp = malloc(strlen(log_path) + strlen("/xrdp") + 1); cp = g_new(char, strlen(log_path) + strlen("/xrdp") + 1);
if (cp != 0) if (cp != 0)
{ {
@ -1423,7 +1423,7 @@ get_log_path()
log_path = g_getenv("HOME"); log_path = g_getenv("HOME");
if (log_path != 0) if (log_path != 0)
{ {
cp = malloc(strlen(log_path) + strlen("/.local/share/xrdp") + 1); cp = g_new(char, strlen(log_path) + strlen("/.local/share/xrdp") + 1);
if (cp != 0) if (cp != 0)
{ {