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:
Chris Michael 2016-06-07 12:09:20 -04:00
parent a0eb98db3b
commit 09fc4e7b68
1 changed files with 1 additions and 1 deletions

View File

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