summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorunknown <guilhem@mysqlwin32.>2008-02-19 09:32:10 +0100
committerunknown <guilhem@mysqlwin32.>2008-02-19 09:32:10 +0100
commita680bc76880603d1f27aab9c44b2abe8a3a86526 (patch)
tree1765c760587582748f681120b8723053b05af4f0 /dbug
parent0ab7c2f3a834ea3fd6e0f1b1b2da511c4e0e97f2 (diff)
parentb369f21b7bc4157af94cb03a7e613a739b64329f (diff)
downloadmariadb-git-a680bc76880603d1f27aab9c44b2abe8a3a86526.tar.gz
dbug.c:
SCCS merged dbug/dbug.c: SCCS merged
Diffstat (limited to 'dbug')
-rw-r--r--dbug/dbug.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index f956adff3f1..1e72bb348ed 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -1979,12 +1979,7 @@ static void DBUGOpenFile(CODE_STATE *cs,
else
{
newfile= !EXISTS(name);
- if (!(fp= fopen(name,
-#if defined(MSDOS) || defined(__WIN__)
- append ? "a+c" : "wc"
-#else
- append ? "a+" : "w"
-#endif
+ if (!(fp= fopen(name, append ? "a+" : "w")))
)))
{
(void) fprintf(stderr, ERR_OPEN, cs->process, name);