Text  |   XML   |   Visible Warnings:

irssi-0.8.14 : irssi-0.8.14 analysis 2 : Useless Assignment  at perl-common.c:201

Categories: LANG.STRUCT.UA
Warning ID: 22020.28446
Procedure: irssi_add_object
Trace: view
Modified: Thu Nov 26 11:09:51 2009   show details
 
Priority: None
State: None
Finding: None
Owner: None
  edit properties

Legend [ X ]
Warning Location
Contributes
Parse Error
Other Warning
Two or More Loop Iterations
On Execution Path
Comment
Macro
Preprocessor
Include
Keyword
Preprocessed Away

Source  |  Language: C Hide Legend     
LineSource
  /kat0/fletcher/SATE/2010/irssi-0.8.14/src/perl/perl-common.c
  Enter irssi_add_object
188 void irssi_add_object(int type, int chat_type, const char *stash,
189                       PERL_OBJECT_FUNC func) 
190 {
191         PERL_OBJECT_REC *rec;
192         void *hash;
193  
194         g_return_if_fail((type & ~0xffff) == 0);
195         g_return_if_fail((chat_type & ~0xffff) == 0);
196  
197         hash = GINT_TO_POINTER(type | (chat_type << 16));
198         rec = g_hash_table_lookup(iobject_stashes, hash);
199         if (rec == NULL) {
200                 rec = g_new(PERL_OBJECT_REC, 1);
201                 rec->stash = g_strdup(stash);     /* Useless Assignment */
202                 g_hash_table_insert(iobject_stashes, hash, rec);
203         }
204         rec->fill_func = func;
205 } 




Change Warning 22020.28446 : Useless Assignment

Priority:
State:
Finding:
Owner:
Note: