forked from enlightenment/efl
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 ad2e21b023
.
This commit is contained in:
parent
a0eb98db3b
commit
09fc4e7b68
|
@ -427,7 +427,7 @@ _logind_connect(Elput_Manager **manager, const char *seat, unsigned int tty)
|
|||
if (ret < 0)
|
||||
{
|
||||
ERR("Failed to get session seat");
|
||||
if (s) free(s);
|
||||
free(s);
|
||||
goto seat_err;
|
||||
}
|
||||
else if ((seat) && (s) && (strcmp(seat, s)))
|
||||
|
|
Loading…
Reference in New Issue