diff options
Diffstat (limited to 'rbutil/autodetection.cpp')
-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 52c7c0c480..85bfc21b11 100644 --- a/rbutil/autodetection.cpp +++ b/rbutil/autodetection.cpp | |||
@@ -207,7 +207,7 @@ wxArrayString getPossibleMountPoints() | |||
207 | wxArrayString tempList; | 207 | wxArrayString tempList; |
208 | 208 | ||
209 | FILE *fp = fopen( "/proc/mounts", "r" ); | 209 | FILE *fp = fopen( "/proc/mounts", "r" ); |
210 | if( !fp ) return wxT(""); | 210 | if( !fp ) return tempList; |
211 | char *dev, *dir; | 211 | char *dev, *dir; |
212 | while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF ) | 212 | while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF ) |
213 | { | 213 | { |
@@ -217,6 +217,8 @@ wxArrayString getPossibleMountPoints() | |||
217 | free( dir ); | 217 | free( dir ); |
218 | } | 218 | } |
219 | fclose( fp ); | 219 | fclose( fp ); |
220 | |||
221 | return tempList; | ||
220 | } | 222 | } |
221 | 223 | ||
222 | wxString resolve_mount_point( const wxString device ) | 224 | wxString resolve_mount_point( const wxString device ) |