diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-18 02:32:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-18 02:32:19 +0000 |
commit | 860750fb903d286bb037848f9da0127df9d46007 (patch) | |
tree | 3737f76cf2130745643a762755007de32d1f7da6 /gtk | |
parent | 8a8b8834500043ea4f7d818aafa2b1edb353563a (diff) |
Squelch a compiler warning.
svn path=/trunk/; revision=11401
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/capture_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 4b9f3a335e..0689dadbfa 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -291,7 +291,7 @@ set_link_type_list(GtkWidget *linktype_om, GtkWidget *entry) lt_list = get_pcap_linktype_list(if_name, err_buf); /* create string of list of IP addresses of this interface */ - for( ; curr_ip = g_slist_nth(if_info->ip_addr, ips); ips++) { + for( ; (curr_ip = g_slist_nth(if_info->ip_addr, ips)) != NULL; ips++) { if (ips != 0) { g_string_append(ip_str, ", "); } |