From 5d25e2d850132ce2006a5af7a53568b36919dfa3 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Wed, 27 Nov 2019 20:27:40 +0000 Subject: [PATCH] more travis tweaks --- libvips/iofuncs/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvips/iofuncs/init.c b/libvips/iofuncs/init.c index a072fcb0..9d2e98e2 100644 --- a/libvips/iofuncs/init.c +++ b/libvips/iofuncs/init.c @@ -1006,7 +1006,8 @@ guess_prefix( const char *argv0, const char *name ) /* Try to guess from cwd. Only if this is a relative path, though. */ - if( !g_path_is_absolute( argv0 ) ) { + if( argv0 && + !g_path_is_absolute( argv0 ) ) { char *dir; char full_path[VIPS_PATH_MAX]; char *resolved;