Reacted on warning of cppcheck about libburn/sg-solaris.c
This commit is contained in:
parent
c7f0b2f2d0
commit
e563968695
@ -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
|
||||
|
||||
char *testpath = NULL, *cpt;
|
||||
long blocks;
|
||||
off_t add_size = 0;
|
||||
|
||||
BURN_ALLOC_MEM(testpath, char, 4096);
|
||||
|
||||
testpath[0] = 0;
|
||||
blocks = *bytes / 512;
|
||||
if (stat(path, &stbuf) == -1) {
|
||||
strcpy(testpath, path);
|
||||
cpt = strrchr(testpath, '/');
|
||||
|
Loading…
Reference in New Issue
Block a user