Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mpim-sw
libcdi
Commits
e396ee6d
Commit
e396ee6d
authored
Jun 02, 2015
by
Thomas Jahns
🤸
Browse files
Replace myStrDup with strdup in input file class.
parent
759722be
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/input_file.c
View file @
e396ee6d
...
...
@@ -3,7 +3,6 @@
#include
"cdi.h"
#include
"dmemory.h"
#include
"proprietarySystemWorkarounds.h"
#include
<errno.h>
#include
<fcntl.h>
...
...
@@ -21,7 +20,7 @@ static CdiInputFile* cdiInputFile_condestruct(CdiInputFile* me, const char* path
#define super() (&me->super)
if
(
!
path
)
goto
destruct
;
cdiRefObject_construct
(
super
());
me
->
path
=
myS
tr
D
up
(
path
);
me
->
path
=
s
tr
d
up
(
path
);
if
(
!
me
->
path
)
goto
destructSuper
;
do
{
...
...
Write
Preview
Supports
Markdown
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