Skip to content

Commit

Permalink
fixed: use of unitialized memory if no /etc/timezone file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
elupus authored and elan committed Oct 25, 2008
1 parent a75d3d5 commit f67dcbf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xbmc/linux/LinuxTimezone.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ void CLinuxTimezone::SetTimezone(CStdString timezoneName)
CStdString CLinuxTimezone::GetOSConfiguredTimezone()
{
char timezoneName[255];
timezoneName[0] = 0;
FILE* fp = fopen("/etc/timezone", "r");
if (fp)
{
Expand Down

0 comments on commit f67dcbf

Please sign in to comment.