summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/autodetection.cpp4
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 )