[patch] * hotlist.c (update_path_name): Fix gcc4 warning.
- From: "Andrew V. Samoilov" <andrew email zp ua>
- To: mc-devel gnome org, Pavel Shirshov <me pavelsh pp ru>
- Subject: [patch] * hotlist.c (update_path_name): Fix gcc4 warning.
- Date: Tue, 8 Aug 2006 15:02:30 +0300 (EEST)
Hello,
this is small patch for:
hotlist.c: In function `hotlist_callback':
hotlist.c:171: warning: `text' might be used uninitialized in this function
Best regards,
--
Regards,
Andrew V. Samoilov
________________________________________________________________
GET INTERNET ACCESS FROM BCS! http://www.bcs.zp.ua
Join BCS today! For your FREE webmail, visit: http://email.zp.ua/
* hotlist.c (update_path_name): Fix gcc4 warning.
--- hotlist.c~ 2006-08-04 11:36:43.000000000 +0300
+++ hotlist.c 2006-08-08 10:40:36.000000000 +0300
@@ -168,7 +168,7 @@ hotlist_refresh (Dlg_head * dlg)
static inline void
update_path_name (void)
{
- const char *text;
+ const char *text = "";
char *p;
WListbox *list = hotlist_state.moving ? l_movelist : l_hotlist;
Dlg_head *dlg = list->widget.parent;
@@ -185,8 +185,6 @@ update_path_name (void)
} else {
text = list->current->text;
}
- } else {
- text = "";
}
if (!hotlist_state.moving)
label_set_text (pname,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]