Reacted on warning of cppcheck about libburn/sg-solaris.c
This commit is contained in:
parent
f12ce229ae
commit
13895a6518
@ -1 +1 @@
|
|||||||
#define Cdrskin_timestamP "2011.07.12.155417"
|
#define Cdrskin_timestamP "2011.07.12.173727"
|
||||||
|
@ -785,13 +785,11 @@ int burn_os_stdio_capacity(char *path, off_t *bytes)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
char *testpath = NULL, *cpt;
|
char *testpath = NULL, *cpt;
|
||||||
long blocks;
|
|
||||||
off_t add_size = 0;
|
off_t add_size = 0;
|
||||||
|
|
||||||
BURN_ALLOC_MEM(testpath, char, 4096);
|
BURN_ALLOC_MEM(testpath, char, 4096);
|
||||||
|
|
||||||
testpath[0] = 0;
|
testpath[0] = 0;
|
||||||
blocks = *bytes / 512;
|
|
||||||
if (stat(path, &stbuf) == -1) {
|
if (stat(path, &stbuf) == -1) {
|
||||||
strcpy(testpath, path);
|
strcpy(testpath, path);
|
||||||
cpt = strrchr(testpath, '/');
|
cpt = strrchr(testpath, '/');
|
||||||
|
Loading…
Reference in New Issue
Block a user