Merge pull request #485 from proski/code-standards

Code standards
master
metalefty 8 years ago committed by GitHub
commit b89956d06e

@ -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)
{ {

Loading…
Cancel
Save