diff options
| author | Dominik Wenger <domonoky@googlemail.com> | 2007-06-22 19:09:00 +0000 |
|---|---|---|
| committer | Dominik Wenger <domonoky@googlemail.com> | 2007-06-22 19:09:00 +0000 |
| commit | f5936c062f7ffe99d1503860397d9637caff3f05 (patch) | |
| tree | 59e3c40c61c8837c635d60a35dab43a4a26a390d | |
| parent | 802db8e83f7c4468b0bce265860911d5db4479b2 (diff) | |
| download | rockbox-f5936c062f7ffe99d1503860397d9637caff3f05.zip rockbox-f5936c062f7ffe99d1503860397d9637caff3f05.tar.gz rockbox-f5936c062f7ffe99d1503860397d9637caff3f05.tar.bz2 rockbox-f5936c062f7ffe99d1503860397d9637caff3f05.tar.xz | |
rbutil: Upps.. i hope the last one. :-/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13689 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | rbutil/autodetection.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/autodetection.cpp b/rbutil/autodetection.cpp index 52c7c0c..85bfc21 100644 --- a/rbutil/autodetection.cpp +++ b/rbutil/autodetection.cpp @@ -207,7 +207,7 @@ wxArrayString getPossibleMountPoints() wxArrayString tempList; FILE *fp = fopen( "/proc/mounts", "r" ); - if( !fp ) return wxT(""); + if( !fp ) return tempList; char *dev, *dir; while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF ) { @@ -217,6 +217,8 @@ wxArrayString getPossibleMountPoints() free( dir ); } fclose( fp ); + + return tempList; } wxString resolve_mount_point( const wxString device ) |