Commit 638e0853 authored by Robert Ricci's avatar Robert Ricci

Bugfix for operator<< when the string is NULL.

parent 3d63f520
......@@ -126,7 +126,11 @@ class fstring {
* Output/debugging functions
*/
friend ostream &operator<<(ostream &o, const fstring &s) {
return(o << s.str);
if (s.str != NULL) {
return(o << s.str);
} else {
return(o << "(null)");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment