Commit 8e4f43f
committed
lib/utmp.c: get_current_utmp(): Move memdup_T() to the return statement
This removes the reuse of 'ut', with which I wasn't entirely happy.
It also reduces the scope between setutxent()/endutxent().
Signed-off-by: Alejandro Colomar <[email protected]>1 parent 00625f4 commit 8e4f43f
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
0 commit comments