Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
12e10b11
Commit
12e10b11
authored
Aug 27, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge vvagin@bk-internal.mysql.com:/home/bk/mysql-4.1
into eagle.mysql.r18.ru:/home/vva/work/mysql.orig/test/mysql-4.1
parents
85391d22
f4abefe3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
cmd-line-utils/libedit/history.c
cmd-line-utils/libedit/history.c
+1
-9
No files found.
cmd-line-utils/libedit/history.c
View file @
12e10b11
...
...
@@ -661,12 +661,6 @@ history_load(History *h, const char *fname)
if
((
fp
=
fopen
(
fname
,
"r"
))
==
NULL
)
return
(
i
);
if
((
line
=
fgetln
(
fp
,
&
sz
))
==
NULL
)
goto
done
;
if
(
strncmp
(
line
,
hist_cookie
,
sz
)
!=
0
)
goto
done
;
ptr
=
h_malloc
(
max_size
=
1024
);
if
(
ptr
==
NULL
)
goto
done
;
...
...
@@ -720,8 +714,6 @@ history_save(History *h, const char *fname)
if
(
fchmod
(
fileno
(
fp
),
S_IRUSR
|
S_IWUSR
)
==
-
1
)
goto
done
;
if
(
fputs
(
hist_cookie
,
fp
)
==
EOF
)
goto
done
;
ptr
=
h_malloc
(
max_size
=
1024
);
if
(
ptr
==
NULL
)
goto
done
;
...
...
@@ -740,7 +732,7 @@ history_save(History *h, const char *fname)
ptr
=
nptr
;
}
(
void
)
strvis
(
ptr
,
ev
.
str
,
VIS_WHITE
);
(
void
)
fprintf
(
fp
,
"%s
\n
"
,
p
tr
);
(
void
)
fprintf
(
fp
,
"%s
\n
"
,
ev
.
s
tr
);
}
oomem:
h_free
((
ptr_t
)
ptr
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment