projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d13cef8
)
Code cleanup.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Thu, 17 Aug 2006 16:15:49 +0000
(18:15 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:39:15 +0000
(19:39 +0200)
ext/vcedit.c
patch
|
blob
|
history
diff --git
a/ext/vcedit.c
b/ext/vcedit.c
index 393ca9d14c0033034ecf56592b1bd1c86285c94d..fd89008587c452b23db169e16c5435cc1a88593f 100644
(file)
--- a/
ext/vcedit.c
+++ b/
ext/vcedit.c
@@
-71,10
+71,12
@@
vcedit_state_free (vcedit_state *state)
}
static bool
-vcedit_state_init (vcedit_state *state)
+vcedit_state_init (vcedit_state *state
, const char *filename
)
{
state->refcount = 1;
+ strcpy (state->filename, filename);
+
return true;
}
@@
-94,13
+96,11
@@
vcedit_state_new (const char *filename)
memset (state, 0, sizeof (vcedit_state));
- if (!vcedit_state_init (state)) {
+ if (!vcedit_state_init (state
, filename
)) {
vcedit_state_free (state);
return NULL;
}
- strcpy (state->filename, filename);
-
return state;
}