about summary refs log tree commit diff
path: root/src/nix-env
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-08-07T19·48+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-08-07T19·48+0000
commita0607be7f4ca2d54332cd9e557b21f6ed7a763d5 (patch)
tree2de37f0dcf9d336fd96af950c64564afa292b156 /src/nix-env
parent5a6b45e2523c29c215f77135c6866baa83f1a7d5 (diff)
* Workaround for a bug (?) in GCC 2.95.
Diffstat (limited to 'src/nix-env')
-rw-r--r--src/nix-env/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix-env/main.cc b/src/nix-env/main.cc
index 02defe44a3c4..7ec2667e75c8 100644
--- a/src/nix-env/main.cc
+++ b/src/nix-env/main.cc
@@ -804,7 +804,7 @@ static void opQuery(Globals & globals,
     /* Print the desired columns, or XML output. */
     Table table;
     ostringstream dummy;
-    XMLWriter xml(xmlOutput ? cout : dummy);
+    XMLWriter xml(*(xmlOutput ? &cout : &dummy));
     XMLOpenElement xmlRoot(xml, "items");
     
     for (vector<DrvInfo>::iterator i = elems2.begin();