diff options
Diffstat (limited to 'media/libmedia')
-rw-r--r-- | media/libmedia/MediaScanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libmedia/MediaScanner.cpp b/media/libmedia/MediaScanner.cpp index 43762e7..843a8fd 100644 --- a/media/libmedia/MediaScanner.cpp +++ b/media/libmedia/MediaScanner.cpp @@ -58,7 +58,7 @@ status_t MediaScanner::processDirectory( int pathRemaining = PATH_MAX - pathLength; strcpy(pathBuffer, path); - if (pathLength > 0 && pathBuffer[pathLength - 1]) { + if (pathLength > 0 && pathBuffer[pathLength - 1] != '/') { pathBuffer[pathLength] = '/'; pathBuffer[pathLength + 1] = 0; --pathRemaining; |