Index: trunk/src/io/c_stream.cc
===================================================================
--- trunk/src/io/c_stream.cc	(revision 124)
+++ trunk/src/io/c_stream.cc	(revision 125)
@@ -19,5 +19,5 @@
 
 c_stream::c_stream( void* pfile, const char* filename )
-	: m_file( nullptr )
+	: m_file( pfile )
 	, m_file_name( filename )
 	, m_file_size( size_t(-1) )
@@ -58,5 +58,5 @@
 size_t c_stream::size()
 {
-	if ( m_file == nullptr || m_file_name == "" )
+	if ( m_file == nullptr || m_file_name == nullptr )
 	{
 		return 0;
@@ -66,5 +66,5 @@
 	{
 		struct stat fstat; 
-		int result = stat(m_file_name.c_str(), &fstat ); 
+		int result = stat(m_file_name, &fstat ); 
 		if ( result != 0 ) 
 		{
