Ethereal-dev: [Ethereal-dev] Patch for crash in main.c on Win2K

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Dinesh G Dutt <ddutt@xxxxxxxxx>
Date: Sat, 25 Oct 2003 22:08:54 -0700
Hi,

With the latest source checked out, I ran into a crash in main.c which got
fixed by this patch. I'm not sure if this is the right fix or something else
needs to be fixed.

Dinesh
--
*** main.c	20 Oct 2003 22:28:22 -0000	1.326
--- main.c	26 Oct 2003 05:06:37 -0000
***************
*** 2688,2694 ****
  	unsigned int i;
  
  	/* Is this an XLFD font?  If it begins with "-", yes, otherwise no. */
! 	if (font_name[0] == '-') {
  		xlfd_tokens = g_strsplit(font_name, "-", XLFD_WEIGHT+1);
  
  		/*
--- 2688,2694 ----
  	unsigned int i;
  
  	/* Is this an XLFD font?  If it begins with "-", yes, otherwise no. */
! 	if (font_name && (font_name[0] == '-')) {
  		xlfd_tokens = g_strsplit(font_name, "-", XLFD_WEIGHT+1);
  
  		/*

-- 
I am not young enough to know everything. - Oscar Wilde