Skip to content

Commit

Permalink
unbreak FreeBSD build
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgk committed Apr 24, 2020
1 parent 0509cb5 commit de9aaab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pspg.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <signal.h>
#include <sys/ioctl.h>
#include <poll.h>
#include <stdint.h>

#ifndef GWINSZ_IN_SYS_IOCTL
#include <termios.h>
Expand Down Expand Up @@ -2652,7 +2653,7 @@ main(int argc, char *argv[])

memset(&desc2, 0, sizeof(desc2));

if (state.pathname)
if (state.pathname[0])
{
if (state.fp)
{
Expand Down

0 comments on commit de9aaab

Please sign in to comment.