Simplifies creating the char*, avoids using useless std::string

MD-20923
This commit is contained in:
Carles Pina 2014-11-20 12:03:38 +00:00
parent 0ef971a251
commit 3904349a06
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ bool extractFileFromBinary(int fd, const void* buffer, size_t length)
UpdateDialog* UpdateDialogGtkFactory::createDialog()
{
char* libPath = strdup(std::string("/tmp/mendeley-libUpdaterGtk.so.XXXXXX").c_str());
char* libPath = strdup("/tmp/mendeley-libUpdaterGtk.so.XXXXXX");
int libFd = mkostemp(libPath, O_CREAT | O_WRONLY | O_TRUNC);
if (libFd == -1)