mirror of
https://git.freebsd.org/ports.git
synced 2025-06-07 13:50:38 -04:00
- Switch to the tar.bz2 distfile (it is 37% smaller) - Fix a segmentation fault (patch obtained from Gentoo) - Define LICENSE (GPLv2) and make GUI compulsory for now (when configured for non-GUI, it doesn't install universally required `gftprc' file, and generally requires more work to correctly decouple frontend programs) - Rename one ::-containing patch file, remove unneeded ones - Cleanup MASTER_SITES, update pkg-plist and pkg-descr
21 lines
641 B
C
21 lines
641 B
C
Fix segmentation fault, when gftpui_run_chdir is called with directory=0x0,
|
|
and then calls gftp_expand_path (src=0x0),
|
|
the NULL string was cloned using g_strdup, which returns NULL if
|
|
its only argument is NULL, then this returned string was unreferenced.
|
|
|
|
lib/misc.c | 2 ++
|
|
1 files changed, 2 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/lib/misc.c b/lib/misc.c
|
|
index 16c019b..2791466 100644
|
|
--- lib/misc.c.orig
|
|
+++ lib/misc.c
|
|
@@ -143,6 +143,8 @@ gftp_expand_path (gftp_request * request, const char *src)
|
|
tempchar;
|
|
struct passwd *pw;
|
|
|
|
+ g_return_val_if_fail(src != NULL, NULL);
|
|
+
|
|
pw = NULL;
|
|
str = g_strdup (src);
|
|
|