summaryrefslogtreecommitdiff
path: root/src/lib/elput/elput_logind.c
diff options
context:
space:
mode:
authorChris Michael <cpmichael@osg.samsung.com>2016-06-07 12:09:20 -0400
committerChris Michael <cpmichael@osg.samsung.com>2016-06-07 12:09:20 -0400
commit09fc4e7b681260b0578145979b3b924fa6c59f05 (patch)
tree35a7a227fe99d90e2b5fe0a28615da723a7c5963 /src/lib/elput/elput_logind.c
parenta0eb98db3bdb6eb6df9ca0816a059edc409e7571 (diff)
Revert "elput: Missing pointer initialization."
Reverting this as the initialization of char *s was already set to NULL in a previous patch, so the 'if (s)' check here is pointless really as 'man 3 free' says passing NULL to free() is ok. This reverts commit ad2e21b02399c02a748bb8b8ab0dc10f85e6662d.
Diffstat (limited to 'src/lib/elput/elput_logind.c')
-rw-r--r--src/lib/elput/elput_logind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elput/elput_logind.c b/src/lib/elput/elput_logind.c
index 799a26a10c..22cb1b02cc 100644
--- a/src/lib/elput/elput_logind.c
+++ b/src/lib/elput/elput_logind.c
@@ -427,7 +427,7 @@ _logind_connect(Elput_Manager **manager, const char *seat, unsigned int tty)
427 if (ret < 0) 427 if (ret < 0)
428 { 428 {
429 ERR("Failed to get session seat"); 429 ERR("Failed to get session seat");
430 if (s) free(s); 430 free(s);
431 goto seat_err; 431 goto seat_err;
432 } 432 }
433 else if ((seat) && (s) && (strcmp(seat, s))) 433 else if ((seat) && (s) && (strcmp(seat, s)))