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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
7f8e7315
Commit
7f8e7315
authored
Aug 27, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pnousiainen@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/space/pekka/ndb/version/my41
parents
aa243adb
12e10b11
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 @
7f8e7315
...
...
@@ -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