Index: libcfa/src/iostream.cfa
===================================================================
--- libcfa/src/iostream.cfa	(revision cce0807bda0b7225dfa1e297cee67d159ff260b9)
+++ libcfa/src/iostream.cfa	(revision 3f4f30afeafb4ca6730befe93d0e53969ef70cad)
@@ -10,6 +10,6 @@
 // Created On       : Wed May 27 17:56:53 2015
 // Last Modified By : Peter A. Buhr
-// Last Modified On : Thu Oct 19 21:10:10 2023
-// Update Count     : 1801
+// Last Modified On : Sat Nov 11 07:06:27 2023
+// Update Count     : 1803
 //
 
@@ -1001,4 +1001,6 @@
 				} // if
 			} // if
+			// FIX ME: CFA strings need to be modified to NOT change the argument for this case, then this can be removed.
+			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} else {
 			if ( f.flags.delimiter ) {					// getline
@@ -1041,4 +1043,5 @@
 				} // if
 			} // if
+			if ( rwd > 0 && args == 0 ) f.s[0]= '\0';	// read failed => no pattern match => set string to null
 		} // if
 		if ( args == 1 && eof( is ) ) {					// data but scan ended at EOF
