Reacted on warning of cppcheck about libburn/sg-solaris.c

This commit is contained in:
Thomas Schmitt 2011-07-12 17:38:01 +00:00
parent c7f0b2f2d0
commit e563968695
2 changed files with 1 additions and 3 deletions

View File

@ -1 +1 @@
#define Cdrskin_timestamP "2011.07.12.155417" #define Cdrskin_timestamP "2011.07.12.173727"

View File

@ -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, '/');