[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem report #96
From: |
Dan Nicolaescu |
Subject: |
problem report #96 |
Date: |
Mon, 1 Dec 2008 07:54:21 -0800 (PST) |
CID: 96
Checker: UNINIT (help)
File: base/src/emacs/src/gtkutil.c
Function: update_frame_tool_bar
Description: Using uninitialized value "stock"
Event var_decl: Declared variable "stock" without initializer
Also see events: [uninit_use]
3865 Lisp_Object stock;
3866 GtkStockItem stock_item;
3867 char *stock_name = NULL;
3868 char *icon_name = NULL;
3869 Lisp_Object rtl;
3870 GtkWidget *wbutton = NULL;
3871 GtkWidget *weventbox;
3872 Lisp_Object func = intern ("x-gtk-map-stock");
3873 Lisp_Object specified_file;
3874
3875 ti = gtk_toolbar_get_nth_item (GTK_TOOLBAR (x->toolbar_widget),
i);
3876
At conditional (3): "ti != 0" taking true path
3877 if (ti)
3878 {
3879 weventbox = gtk_bin_get_child (GTK_BIN (ti));
3880 wbutton = gtk_bin_get_child (GTK_BIN (weventbox));
3881 }
3882
3883 image = PROP (TOOL_BAR_ITEM_IMAGES);
3884
3885 /* Ignore invalid image specifications. */
At conditional (4): "valid_image_p == 0" taking false path
3886 if (!valid_image_p (image))
3887 {
3888 if (wbutton) gtk_widget_hide (wbutton);
3889 continue;
3890 }
3891
3892 specified_file = file_for_image (image);
At conditional (5): "specified_file != Qnil" taking true path
At conditional (6): "Qt == Ffboundp" taking false path
3893 if (!NILP (specified_file) && EQ (Qt, Ffboundp (func)))
3894 stock = call1 (func, specified_file);
3895
Event uninit_use: Using uninitialized value "stock"
Also see events: [var_decl]
3896 if (! NILP (stock) && STRINGP (stock))
3897 {
3898 stock_name = SSDATA (stock);
- problem report #96,
Dan Nicolaescu <=