From f5936c062f7ffe99d1503860397d9637caff3f05 Mon Sep 17 00:00:00 2001 From: Dominik Wenger Date: Fri, 22 Jun 2007 19:09:00 +0000 Subject: rbutil: Upps.. i hope the last one. :-/ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13689 a1c6a512-1295-4272-9138-f99709370657 --- rbutil/autodetection.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rbutil/autodetection.cpp') 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() 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 ) -- cgit v1.2.3