mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s3:lib: Consistently return a string with a trailing newline
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
8505094b3b
commit
34545cdf3d
@ -406,12 +406,12 @@ const char *time_to_asc(const time_t t)
|
||||
struct tm *lt = localtime(&t);
|
||||
|
||||
if (!lt) {
|
||||
return "unknown time";
|
||||
return "unknown time\n";
|
||||
}
|
||||
|
||||
asct = asctime(lt);
|
||||
if (!asct) {
|
||||
return "unknown time";
|
||||
return "unknown time\n";
|
||||
}
|
||||
return asct;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user