Skip to content

Commit

Permalink
fixed: some issues pointed out by valgrind
Browse files Browse the repository at this point in the history
SPLIT ME
  • Loading branch information
notspiff committed Jan 27, 2016
1 parent 2ed3f71 commit e665b25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xbmc/filesystem/posix/PosixDirectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ bool CPosixDirectory::GetDirectory(const CURL& url, CFileItemList &items)
struct dirent* entry;
while ((entry = readdir(dir)) != NULL)
{
if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0)
if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0 || !entry->d_name)
continue;

std::string itemLabel(entry->d_name);
Expand Down
3 changes: 2 additions & 1 deletion xbmc/windowing/WinEventsX11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ size_t CWinEventsX11::GetQueueSize()
return CWinEventsX11Imp::GetQueueSize();
}

CWinEventsX11Imp::CWinEventsX11Imp()
CWinEventsX11Imp::CWinEventsX11Imp() :
m_RREventBase(0)
{
m_display = 0;
m_window = 0;
Expand Down

0 comments on commit e665b25

Please sign in to comment.