Skip to content

Commit

Permalink
internal: fb_DevPipeOpen(): Remove useless helper var
Browse files Browse the repository at this point in the history
  • Loading branch information
dkl committed Sep 20, 2015
1 parent 0a18dd4 commit 977db97
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/rtlib/dev_pipe_open.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ int fb_DevPipeOpen( FB_FILE *handle, const char *filename, size_t filename_len )
int res = fb_ErrorSetNum( FB_RTERROR_OK );
FILE *fp = NULL;
char openmask[16];
const char *fname;

FB_LOCK();

fname = filename;

handle->hooks = &hooks_dev_pipe;

openmask[0] = 0;
Expand Down Expand Up @@ -81,9 +78,9 @@ int fb_DevPipeOpen( FB_FILE *handle, const char *filename, size_t filename_len )
{
/* try to open/create pipe */
#ifdef HOST_MINGW
if( (fp = _popen( fname, openmask )) == NULL )
if( (fp = _popen( filename, openmask )) == NULL )
#else
if( (fp = popen( fname, openmask )) == NULL )
if( (fp = popen( filename, openmask )) == NULL )
#endif
{
res = fb_ErrorSetNum( FB_RTERROR_FILENOTFOUND );
Expand Down

0 comments on commit 977db97

Please sign in to comment.