functionSource
stringlengths
20
97.4k
CWE-119
bool
2 classes
CWE-120
bool
2 classes
CWE-469
bool
2 classes
CWE-476
bool
2 classes
CWE-other
bool
2 classes
combine
int64
0
1
zxid_mk_ent(zxid_conf* cf, struct zx_md_EntityDescriptor_s* ed) { struct zx_str* val; zxid_entity* ent = ZX_ZALLOC(cf->ctx, zxid_entity); ent->ed = ed; if (!ed->entityID) goto bad_md; ent->eid = zx_str_to_c(cf->ctx, &ed->entityID->g); sha1_safe_base64(ent->sha1_name, ed->entityID->g.len, ent->eid); en...
false
false
false
false
false
0
t31_at_rx(t31_state_t *s, const char *t, int len) { if (s->dte_data_timeout) s->dte_data_timeout = s->call_samples + ms_to_samples(5000); switch (s->at_state.at_rx_mode) { case AT_MODE_ONHOOK_COMMAND: case AT_MODE_OFFHOOK_COMMAND: at_interpreter(&s->at_state, t, len); break; ...
false
false
false
false
false
0
HandleSelfResOpcode(WorldPacket& /*recv_data*/) { DEBUG_FILTER_LOG(LOG_FILTER_SPELL_CAST, "WORLD: CMSG_SELF_RES"); // empty opcode if (_player->HasAuraType(SPELL_AURA_PREVENT_RESURRECTION)) return; if (_player->GetUInt32Value(PLAYER_SELF_RES_SPELL)) { SpellEntry const*...
false
false
false
false
false
0
us_net_create_multicast_udp_socket( struct addrinfo *localaddr, const struct addrinfo *multicastgroup, const char *interface_name, bool tx ) { int fd; if ( tx ) { fd = us_net_creat...
false
false
false
false
false
0
ompi_coll_tuned_topo_build_shortest_bmtree( struct ompi_communicator_t* comm, ompi_coll_tree_t *bmtree, int root ) { int i, size, rank; size = ompi_comm_size(comm); rank = ompi_comm_rank(comm); /* Initialize binomi...
false
false
false
false
false
0
egg_secure_alloc_full (const char *tag, size_t length, int flags) { Block *block; void *memory = NULL; if (tag == NULL) tag = "?"; if (length > 0xFFFFFFFF / 2) { if (egg_secure_warnings) fprintf (stderr, "tried to allocate an insane amount of memory: %lu\n", ...
false
false
false
false
false
0
cleanuplofig(lofig_list *f) { locon_list *c; chain_list *n; for (c = f->LOCON; c != NULL; c = c->NEXT) { n = addchain(NULL, c->NAME); freechain(c->SIG->NAMECHAIN); c->SIG->NAMECHAIN = n; } }
false
false
false
false
false
0
cb_chk_alpha_cond (cb_tree x) { if (current_program->alphabet_name_list) { return 0; } if (CB_LITERAL_P (x)) { return 1; } if (!CB_REFERENCE_P (x) && !CB_FIELD_P (x)) { return 0; } if (CB_TREE_CATEGORY (x) != CB_CATEGORY_ALPHANUMERIC && CB_TREE_CATEGORY (x) != CB_CATEGORY_ALPHABETIC) { return 0; } ...
false
false
false
false
false
0
add_internal_modifiersname(Slapi_PBlock *pb, Slapi_Entry *e) { slapdFrontendConfig_t *slapdFrontendConfig = getFrontendConfig(); struct slapi_componentid *cid = NULL; struct slapdplugin *plugin = NULL; char *plugin_dn = NULL; if(slapdFrontendConfig->plugin_track){ slapi_pblock_get (pb, SLAP...
false
false
false
false
false
0
authdir_mode_handles_descs(const or_options_t *options, int purpose) { if (purpose < 0) return authdir_mode_any_nonhidserv(options); else if (purpose == ROUTER_PURPOSE_GENERAL) return authdir_mode_any_main(options); else if (purpose == ROUTER_PURPOSE_BRIDGE) return (options->BridgeAuthoritativeDir); ...
false
false
false
false
false
0
find_position(int n) { // sets the file to the position after the n:th return // from the end of the file // check if file is not open if (m_file == NULL) { // no file open return; } // check if zero rows if (n == 0) { // zero rows // set position to end of file ...
false
false
false
false
true
1
get_wiki_conf(void) { int i, first; char buf[32], *conf = NULL; snprintf(buf, sizeof(buf), "HostFormat=%u", use_host_exp); xstrcat(conf, buf); snprintf(buf, sizeof(buf), ";JobAggregationTime=%u", job_aggregation_time); xstrcat(conf, buf); first = 1; for (i=0; i<EXC_PART_CNT; i++) { if (!exclude_part_ptr...
false
false
false
false
false
0
extract_divs(__isl_keep isl_basic_set *bset) { int i; isl_ctx *ctx = isl_basic_set_get_ctx(bset); isl_mat *div; div = isl_mat_alloc(ctx, bset->n_div, 1 + 1 + isl_basic_set_total_dim(bset)); if (!div) return NULL; for (i = 0; i < bset->n_div; ++i) isl_seq_cpy(div->row[i], bset->div[i], div->n_col); ...
false
false
false
false
false
0
farcount(field_t *field1, field_t field2) { size_t i, len; int nwpv = field1->nwpv; const int grid1 = field1->grid; const int nmiss1 = field1->nmiss; const double missval1 = field1->missval; double *array1 = field1->ptr; /* double *weight1 = field1->weight; */ const int gr...
false
false
false
false
false
0
pdf_viewer_state_from_imager_state_aux(pdf_viewer_state *pvs, const gs_imager_state *pis) { pvs->transfer_not_identity = (pis->set_transfer.red != NULL ? pis->set_transfer.red->proc != gs_identity_transfer : 0) * 1 + (pis->set_transfer.green != NULL ? pis->set_transfer.green->proc != gs_...
false
false
false
false
false
0
abort() { if (job) { job->kill(); job = 0; } aborted = true; clearDecoder(); changeState(XHRS_Uninitialized); }
false
false
false
false
false
0
setup_timeline_page(void){ int nCookieLife; int nTTL; int nRDL; /* The user must be the setup user in order to see ** this screen. */ login_check_credentials(); if( !g.okSetup ){ cgi_redirect("setup"); return; } if( P("cl") || P("ttl") || P("rdl") ){ if( P("cl") ){ int nCooki...
false
false
false
false
false
0
input_pad_gtk_window_kbdui_arg_init_post_list (int *argc, char ***argv, InputPadGtkKbduiContext *kbdui_context, GList ...
false
false
false
false
false
0
needs_variable (rtx exp, const char *var) { switch (GET_CODE (exp)) { /* Ternary, binary, unary expressions need a variable if any of their subexpressions do. */ case IF_THEN_ELSE: if (needs_variable (XEXP (exp, 2), var)) return true; /* else fall through */ case AND: case IOR: ...
false
false
false
false
true
1
gst_opengl_gluNurbsConnectSignal (OOP nurbOOP, GLenum which) { struct gst_glu_callback *cb_data = gst_glu_nurb_getCallbackIndex (which); GLUnurbs *nurb = vm_proxy->OOPToCObject (nurbOOP); if (!cb_data) return; /* Should fire an interrupt */ /* Add a pointer to the nurb object to retreive informations du...
false
false
false
false
false
0
as102_dvb_dmx_start_feed(struct dvb_demux_feed *dvbdmxfeed) { int ret = 0; struct dvb_demux *demux = dvbdmxfeed->demux; struct as102_dev_t *as102_dev = demux->priv; if (mutex_lock_interruptible(&as102_dev->sem)) return -ERESTARTSYS; if (pid_filtering) as10x_pid_filter(as102_dev, dvbdmxfeed->index, dvbdm...
false
false
false
false
false
0
gst_dash_demux_dispose (GObject * obj) { GstDashDemux *demux = GST_DASH_DEMUX (obj); gst_dash_demux_reset (demux, TRUE); if (demux->stream_task) { gst_object_unref (demux->stream_task); g_rec_mutex_clear (&demux->stream_task_lock); demux->stream_task = NULL; } if (demux->download_task) { gs...
false
false
false
false
false
0
utf8_decode_large_char_fast(const char *s, uint32 uc, uint *retlen) { uchar c = *s; uint i = uc & 0x3F; uint n = *retlen; /* The second byte needs special handling */ if (c > utf8_2nd_byte_tab[i].end || c < utf8_2nd_byte_tab[i].start) goto failure; n--; uc &= 0x3F >> n; for (;;) { uc = UTF8_ACCUMULATE(u...
false
false
false
false
false
0
ReadPolH_Binary(COB::Scene& out, StreamReaderLE& reader, const ChunkInfo& nfo) { if(nfo.version > 8) { return UnsupportedChunk_Binary(reader,nfo,"PolH"); } const chunk_guard cn(nfo,reader); out.nodes.push_back(boost::shared_ptr<Mesh>(new Mesh())); Mesh& msh = (Mesh&)(*out.nodes.back().get()); msh = nfo; Read...
false
false
false
false
false
0
__uprobe_perf_filter(struct trace_uprobe_filter *filter, struct mm_struct *mm) { struct perf_event *event; if (filter->nr_systemwide) return true; list_for_each_entry(event, &filter->perf_events, hw.tp_list) { if (event->hw.target->mm == mm) return true; } return false; }
false
false
false
false
false
0
au_refresh_hinode(struct inode *inode, struct dentry *dentry) { int err, e, update; unsigned int flags; umode_t mode; aufs_bindex_t bindex, bend; unsigned char isdir; struct au_hinode *p; struct au_iinfo *iinfo; err = au_ii_refresh(inode, &update); if (unlikely(err)) goto out; update = 0; iinfo = au_ii(i...
false
false
false
false
false
0
lm_noteoff(struct MF *mf, int chan, int pitch, int vol) { struct MFX *mfx = (struct MFX *) mf; long time = mf->Mf_currtime; TRACE(0, ("lm_noteoff(%p, %d, %d, %d)\n", mf, chan, pitch, vol)); if (mfx->prevnoteonpitch >= 0) { writenote(mfx, time - mfx->prevnoteontime); mfx->prevnoteonpitch = -1; } mfx->prevnot...
false
false
false
false
false
0
downsample_columns_box_filter ( int n, int start_coverage, int pixel_coverage, uint32_t *src, uint32_t *dest) { int stride = n; while (n--) { uint32_t a = 0; uint32_t r = 0; uint32_t g = 0; uint32_t b = 0; uint32_t *column_src = src; ...
false
false
false
false
false
0
st_theme_finalize (GObject * object) { StTheme *theme = ST_THEME (object); g_slist_foreach (theme->custom_stylesheets, (GFunc) cr_stylesheet_unref, NULL); g_slist_free (theme->custom_stylesheets); theme->custom_stylesheets = NULL; g_hash_table_destroy (theme->stylesheets_by_filename); g_hash_table_destroy...
false
false
false
false
false
0
Draw() { register int i, j; IntCoord sx[7], sy[7]; if (x == nil || y == nil) { return; } if (!drawn) { if (count > 2) { for (i = -3; i <= 3; ++i) { j = (rubberPt + count + i) % count; if (j == rubberPt) { sx[i + 3] = trackx; sy[i + 3] = tracky; } else { sx[...
false
false
false
false
false
0
xmlSecGnuTLSX509SubjectNameNodeRead(xmlSecKeyDataPtr data, xmlNodePtr node, xmlSecKeyInfoCtxPtr keyInfoCtx) { xmlSecKeyDataStorePtr x509Store; xmlChar* subject; gnutls_x509_crt_t cert; gnutls_x509_crt_t cert2; int ret; xmlSecAssert2(xmlSecKeyDataCheckId(data, xmlSecGnuTLSKeyDataX509Id), -1); ...
false
false
false
false
false
0
gst_audio_encoded_audio_convert (GstAudioInfo * fmt, gint64 bytes, gint64 samples, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value) { gboolean res = FALSE; g_return_val_if_fail (dest_format != NULL, FALSE); g_return_val_if_fail (dest_value != NULL, FALSE); if (G_UN...
false
false
false
false
false
0
rand_around(short i, short *r, short *c) { /* static char* pos = "\010\007\001\003\004\005\002\006\0"; */ static char pos[] = "\010\007\001\003\004\005\002\006\0"; /* by Yasha */ static short row, col; short j; static short ra[] = { 1, 1, -1, -1, 0, 1, 0, -1, 0 }; static short ca[] = { 1, -1, 1, -1,...
false
false
false
false
false
0
radeon_fence_signaled(struct radeon_fence *fence) { if (!fence) return true; if (radeon_fence_seq_signaled(fence->rdev, fence->seq, fence->ring)) { int ret; ret = fence_signal(&fence->base); if (!ret) FENCE_TRACE(&fence->base, "signaled from radeon_fence_signaled\n"); return true; } return false; }
false
false
false
false
false
0
copy_bin(BIO *const cl, BIO *const be, LONG cont, LONG *res_bytes, const int no_write) { char buf[MAXBUF]; int res; while(cont > L0) { if((res = BIO_read(cl, buf, cont > MAXBUF? MAXBUF: cont)) < 0) return -1; else if(res == 0) return -2; if(!no...
true
true
false
false
false
1
s5h1432_set_channel_bandwidth(struct dvb_frontend *fe, u32 bandwidth) { struct s5h1432_state *state = fe->demodulator_priv; u8 reg = 0; /* Register [0x2E] bit 3:2 : 8MHz = 0; 7MHz = 1; 6MHz = 2 */ reg = s5h1432_readreg(state, S5H1432_I2C_TOP_ADDR, 0x2E); reg &= ~(0x0C); switch (bandwidth) { case 6: reg...
false
false
false
false
false
0
ClearMatches(int k) { int i, j; for (i = k * 4; i < 64; i += 4) { mp[i].Color = P_VERDE1; mp[i].Highlight = P_VERDE0; if (mp[i + 3].Text) free(mp[i + 3].Text); for (j = 0; j < 4; j++) mp[i + j].Text = NULL; } }
false
false
false
false
false
0
ooH323NewCall(char *callToken) { OOH323CallData* call; if(!callToken) { OOTRACEERR1("ERROR: Invalid callToken parameter to make call\n"); return OO_FAILED; } call = ooCreateCall("outgoing", callToken); if (!call) { OOTRACEERR1("ERROR: Can't create call %s\n"); return OO_FAIL...
false
false
false
false
false
0
parseEntry() { if (m_currentLinkHref.isEmpty()) return; if (m_currentCategoryTerm.isEmpty()) return; if (m_currentUpdated.isEmpty()) return; #ifndef QT_NO_DEBUG // hack for testing if (m_currentCategoryTerm.compare("main") == 0) { if (m_currentTitle.compare("0.11b") == 0) { m_currentTitle = "0.1.11b"; } ...
false
false
false
false
false
0
simpleRTFScript(int super) { char *s = NULL; if (getTexMode()==MODE_VERTICAL) changeTexMode(MODE_HORIZONTAL); s=getBraceParam(); fprintRTF("{\\%s%d\\fs%d ", super ? "up" : "dn", script_shift(), script_size()); ConvertString(s); fprintRTF("}"); free(s); }
false
false
false
false
false
0
popscope(bool cut ) /* take the ste's out of the hash table, but leave them in the linked list, * unless cut is set.*/ { ste **p; #ifdef TEST fprintf(stderr,"Popping scope %d\n",scopes[scopedepth] ); #endif if ( scopedepth <= 0 ) { Error.Error("Internal: Popped too many scopes. Giving up; sorry."); ...
false
false
false
false
false
0
dib9000_risc_debug_buf(struct dib9000_state *state, u16 * data, u8 size) { u32 ts = data[1] << 16 | data[0]; char *b = (char *)&data[2]; b[2 * (size - 2) - 1] = '\0'; /* Bullet proof the buffer */ if (*b == '~') { b++; dprintk("%s", b); } else dprintk("RISC%d: %d.%04d %s", state->fe_id, ts / 10000, ts % 100...
false
false
false
false
false
0
printCmplx(Cmplx *a){ char *c; char *p1; char *p2; Cmplx *c1; if(NULL == (c=(char *)malloc(COMPLEX_PRINT_SIZE))) { perror("Malloc"); exit(0); } *c = '\0'; if(getPolarMode() == POLAR){ c1 = polarCmplx(a); p1 = printReal(c1->re); if(getRadixMode() == DEGREES){ mulEq...
false
false
false
false
false
0
get_name_from_property(icalproperty *p) { gchar *tmp = NULL; if (p && icalproperty_get_parameter_as_string(p, "CN") != NULL) tmp = g_strdup(icalproperty_get_parameter_as_string(p, "CN")); return tmp; }
false
false
false
false
false
0
Init() { m_kad_scope = CastChild( wxT("kadScope"), COScopeCtrl ); m_kad_scope->SetRanges(0.0, thePrefs::GetStatsMax()); m_kad_scope->SetYUnits(wxT("Nodes")); #ifndef __WXMSW__ // // Get label with line breaks out of muuli.wdr, because generated code fails // to compile in Windows. // // In Windows, setting a ...
false
false
false
false
false
0
draw_board(void) { gint i, j; if(!mw_get_da()) { return; } for(j = 0; j < rules_get_height(); j++) { for(i = 0; i < rules_get_width(); i++) { if(!_animation_in_progress || ((xy_to_cell_number(i, j)) != _jumping_ball)) { draw_ball_no_update(board_get...
false
false
false
false
false
0
qt2_getregister(struct usb_device *dev, u8 uart, u8 reg, u8 *data) { int ret; ret = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), QT_SET_GET_REGISTER, 0xc0, reg, uart, data, sizeof(*data), QT2_USB_TIMEOUT); if (ret < sizeof(*data)) { if (ret >= 0) ret = -EIO; } return ret...
false
false
false
false
false
0
ANcreatef(int32 an_id,/* IN: annotation interface ID */ ann_type type /* IN: AN_FILE_LABEL for file labels, AN_FILE_DESC for file descritpions.*/) { #ifdef LATER CONSTR(FUNC, "ANcreatef"); /* for HERROR */ #endif /* LATER */ uint16 ann_tag; uint16 ann_ref; ...
false
false
false
false
false
0
win_alloc_firstwin(oldwin) win_T *oldwin; { curwin = win_alloc(NULL); if (oldwin == NULL) { /* Very first window, need to create an empty buffer for it and * initialize from scratch. */ curbuf = buflist_new(NULL, NULL, 1L, BLN_LISTED); if (curwin == NULL || curbuf == NULL) return FAIL; curwin...
false
false
false
false
false
0
reply_quote_str_contains_tokens(void) { return(ps_global->VAR_REPLY_STRING && ps_global->VAR_REPLY_STRING[0] && (strstr(ps_global->VAR_REPLY_STRING, from_token) || strstr(ps_global->VAR_REPLY_STRING, nick_token) || strstr(ps_global->VAR_REPLY_STRING, init_token))); }
false
false
false
false
false
0
ss_fixup_team_data(team_data *tdata) { int i, j, k, ship_in_parse_player, list_size; p_object *p_objp; team_data *p_team_data; p_team_data = tdata; ship_in_parse_player = 0; list_size = p_team_data->num_ship_choices; for ( i = 0; i < MAX_STARTING_WINGS; i++ ) { wing *wp; if ( Starting_wings[i] == -1 ) ...
false
false
false
false
false
0
display_debug_addr (struct dwarf_section *section, void *file) { debug_info **debug_addr_info; unsigned char *entry; unsigned char *end; unsigned int i; unsigned int count; if (section->size == 0) { printf (_("\nThe %s section is empty.\n"), section->name); return 0; ...
false
false
false
false
false
0
getNullValue(const Type *Ty) { switch (Ty->getTypeID()) { case Type::IntegerTyID: return ConstantInt::get(Ty, 0); case Type::FloatTyID: return ConstantFP::get(Ty->getContext(), APFloat(APInt(32, 0))); case Type::DoubleTyID: return ConstantFP::get(Ty->getContext(), APFloat(APInt(64, 0))); case Type...
false
false
false
false
false
0
no_equiv (rtx reg, const_rtx store ATTRIBUTE_UNUSED, void *data ATTRIBUTE_UNUSED) { int regno; rtx list; if (!REG_P (reg)) return; regno = REGNO (reg); list = reg_equiv[regno].init_insns; if (list == const0_rtx) return; reg_equiv[regno].init_insns = const0_rtx; reg_equiv[regno].replacement =...
false
false
false
false
false
0
row_ins_get_row_from_values( /*========================*/ ins_node_t* node) /*!< in: row insert node */ { que_node_t* list_node; dfield_t* dfield; dtuple_t* row; ulint i; /* The field values are copied in the buffers of the select node and it is safe to use them until we fetch from select again: therefore we ...
false
false
false
false
false
0
rbtdb_write_header(FILE *rbtfile, off_t tree_location, off_t nsec_location, off_t nsec3_location) { rbtdb_file_header_t header; isc_result_t result; RUNTIME_CHECK(isc_once_do(&once, init_file_version) == ISC_R_SUCCESS); memset(&header, 0, sizeof(rbtdb_file_header_t)); memmove(header.version1, FILE_VERSION, ...
false
false
false
false
false
0
gap_story_convert_layer_to_RGB_thdata(gint32 layer_id, gint32 *RAW_size , gint32 *th_bpp , gint32 *th_width , gint32 *th_height ) { GimpDrawable *drawable; GimpPixelRgn pixel_rgn; GimpImageType drawable_type; guchar *RAW_data; guchar *RAW_ptr; guchar *pixelrow_data; guint l_row; gint32 l_idx;...
false
false
false
false
false
0
IDirectFBSurface_SetDstBlendFunction( IDirectFBSurface *thiz, DFBSurfaceBlendFunction dst ) { DIRECT_INTERFACE_GET_DATA(IDirectFBSurface) D_DEBUG_AT( Surface, "%s( %p, %d )\n", __FUNCTION__, thiz, dst ); switch (dst) { case DSBF_ZERO: ca...
false
false
false
false
false
0
rosaGetSchemFiles( void ) { static wxArrayString osa1; wxString os1; size_t szt1; osa1.Clear( ); for( szt1=0; szt1<m_oPrcGNetList.roaGetSchemFiles( ).GetCount( ); szt1++ ) { os1 = m_oPrcGNetList.roGetSchemFile( szt1 ).GetFullPath( ); if( ! os1.IsEmpty( ) ) osa1.Add( os1 ); } return( osa...
false
false
false
false
false
0
ctpl_value_to_string (const CtplValue *value) { gchar *val = NULL; switch (ctpl_value_get_held_type (value)) { case CTPL_VTYPE_ARRAY: { /* FIXME: should we warn when converting arrays to strings? */ const GSList *subvalues; GString *string; string = g_string_new ("["); ...
false
false
false
false
false
0
Read_Bot_Info() { FILE *pIn; int i, count; char *info; char bot_filename[MAX_OSPATH]; char stem[MAX_QPATH]; char relative_path[MAX_QPATH]; if(s_rules_box.curvalue == 1 || s_rules_box.curvalue == 4 || s_rules_box.curvalue == 5) { // team game strcpy( stem, "team" ); } else { // non-team, bots...
true
true
false
false
true
1
_nc_scroll_optimize(void) /* scroll optimization to transform curscr to newscr */ { int i; int start, end, shift; TR(TRACE_ICALLS, (T_CALLED("_nc_scroll_optimize"))); #if !defined(SCROLLDEBUG) && !defined(HASHDEBUG) #if USE_HASHMAP /* get enough storage */ if (OLDNUM_SIZE < screen_lines) { int *n...
false
false
false
false
false
0
sis190_irq_mask_and_ack(void *ioaddr) { SIS_W32(IntrMask, 0x00); SIS_W32(IntrStatus, 0xffffffff); SIS_PCI_COMMIT(); }
false
false
false
false
false
0
f_sleep(int count, VALUE **vals) { long time; VALUE res; NUMBER *q1, *q2; res.v_type = V_NULL; #if !defined(_WIN32) if (count > 0) { if (vals[0]->v_type != V_NUM || qisneg(vals[0]->v_num)) return error_value(E_SLEEP); if (qisint(vals[0]->v_num)) { if (zge31b(vals[0]->v_num->num)) return error_value...
false
false
false
false
false
0
vt_iobegin(uint32_t tid, uint64_t* time, uint64_t mid) { GET_THREAD_ID(tid); if (VTTHRD_TRACE_STATUS(VTThrdv[tid]) != VT_TRACE_ON) return; VTGen_write_BEGIN_FILE_OPERATION(VTTHRD_GEN(VTThrdv[tid]), time, mid, ...
false
false
false
false
false
0
_view_destroy(Evry_View *ev) { Ecore_Event_Handler *h; GET_VIEW(v, ev); _view_clear(ev); evas_object_del(v->span); evas_object_del(v->bg); evas_object_del(v->sframe); evry_tab_view_free(v->tabs); EINA_LIST_FREE (v->handlers, h) ecore_event_handler_del(h); E_FREE(v); }
false
false
false
false
false
0
jid_prep_pieces(char *node, char *domain, char *resource) { if(node[0] != '\0') if(stringprep_xmpp_nodeprep(node, 1024) != 0) return 1; if(stringprep_nameprep(domain, 1024) != 0) return 1; if(resource[0] != '\0') if(stringprep_xmpp_resourceprep(resource, 1024) != 0) ...
false
false
false
false
false
0
OnSize(wxSizeEvent& event) { if (IsShown()) { SaveWindowDimensions(); } event.Skip(); }
false
false
false
false
false
0
draw(GtkWidget *widget, cairo_t *cr) { int a; GtkLedLine *led_line; double x, y, radius, rx, ry; led_line = GTK_LED_LINE(widget); rx = widget->allocation.width / led_line->number_of_leds / 2 - 4; ry = widget->allocation.height / 2 - 4; radius = MIN(rx, ry); x = radius + 2; y = widget->allocation.h...
false
false
false
false
false
0
find_next_key(struct btrfs_path *path, int level, struct btrfs_key *key) { for (; level < BTRFS_MAX_LEVEL; level++) { if (!path->nodes[level]) break; if (path->slots[level] + 1 >= btrfs_header_nritems(path->nodes[level])) continue; if (level == 0) btrfs_item_key_to_cpu(path->nodes[level], key...
false
false
false
false
false
0
brasero_metadata_success (BraseroMetadata *self) { BraseroMetadataPrivate *priv; priv = BRASERO_METADATA_PRIVATE (self); BRASERO_UTILS_LOG ("Metadata retrieval completed for %s", priv->info->uri); /* check if that's a seekable one */ brasero_metadata_is_seekable (self); if (priv->silence) { priv->silence->e...
false
false
false
false
false
0
addrsub (Operand *dest, Value &srcaddr, Value &index) { Value &src = getarg (srcaddr) ; if (src.type == T_MAP) { map::iterator s = src.m->find (index) ; if (s != src.m->end()) { set (dest, &(*s).second) ; } else { set (dest, &none) ; } return ; ...
false
false
false
false
false
0
inputoptions(void) { /* input the information on the options */ long i; if(justwts){ if(firstset){ if (ancvar) { inputancestorsstr(phyloanc->Str[0], anczero0, ancone0); } } for (i = 0; i < (chars); i++) weight[i] = 1; inputweightsstr(phyloweights...
false
false
false
false
false
0
get_proc_version(void) { FILE *version; if (strlen(kt->proc_version)) /* been here, done that... */ return TRUE; if (!file_exists("/proc/version", NULL)) return FALSE; if ((version = fopen("/proc/version", "r")) == NULL) return FALSE; if (fread(&...
false
false
false
false
true
1
ep_cd(A a) { A z; C *name; NDC1(a); name=getaname(a); if (name==(C *)0) ERROUT(ERR_TYPE); if(chdir(*name?name:getenv("HOME"))) { #ifdef HAVE_STRERROR char *errstr=strerror(errno); z=gv(Et,2); z->p[0]=(I)gsym("error"); z->p[1]=(I)gsv(0,(errstr)?errstr:"unknown system error"); #else z=gv(Et,2...
false
false
false
false
false
0
CanMergeValues(Value *First, Value *Second) { return First == Second || isa<UndefValue>(First) || isa<UndefValue>(Second); }
false
false
false
false
false
0
sanity_checks_store(struct kmem_cache *s, const char *buf, size_t length) { s->flags &= ~SLAB_DEBUG_FREE; if (buf[0] == '1') { s->flags &= ~__CMPXCHG_DOUBLE; s->flags |= SLAB_DEBUG_FREE; } return length; }
false
false
false
false
false
0
drbg_init_sym_kernel(struct drbg_state *drbg) { int ret = 0; struct crypto_cipher *tfm; tfm = crypto_alloc_cipher(drbg->core->backend_cra_name, 0, 0); if (IS_ERR(tfm)) { pr_info("DRBG: could not allocate cipher TFM handle: %s\n", drbg->core->backend_cra_name); return PTR_ERR(tfm); } BUG_ON(drbg_blocklen(...
false
false
false
false
false
0
buildAction( char *action, int file, int line, int is_predicate ) #else buildAction( action, file, line, is_predicate ) char *action; int file; int line; int is_predicate; #endif { Junction *j1, *j2; Graph g; ActionNode *a; require(action!=NULL, "buildAction: invalid action"); j1 = newJunction(); j2 = newJuncti...
false
false
false
false
false
0
AddEnvVar(cmGeneratedFileStream& fout, const char* envVar, cmMakefile* mf) { // get the variables from the environment and from the cache and then // figure out which one to use: const char* envVarValue = getenv(envVar); std::string cacheEntryName = "CMAKE_ECLIPSE_E...
false
false
false
false
false
0
parse_option(char *opt, const char *input, struct fio_option *options, struct fio_option **o, void *data, int dump_cmdline) { char *post; if (!opt) { log_err("fio: failed parsing %s\n", input); *o = NULL; return 1; } *o = get_option(opt, options, &post); if (!*o) { if (post) { int len = strlen(o...
false
false
false
false
false
0
units_report_store_new(void) { int i; GType cols[URD_COL_NUM]; fc_assert(ARRAY_SIZE(unit_report_columns) == URD_COL_NUM); for (i=0; i<URD_COL_NUM; i++) { cols[i] = unit_report_columns[i].type; } return gtk_list_store_newv(URD_COL_NUM, cols); }
false
false
false
false
false
0
__connman_ipconfig_get_proxy_autoconfig(struct connman_ipconfig *ipconfig) { struct connman_ipdevice *ipdevice; DBG("ipconfig %p", ipconfig); if (ipconfig == NULL || ipconfig->index < 0) return NULL; ipdevice = g_hash_table_lookup(ipdevice_hash, GINT_TO_POINTER(ipconfig->index)); if (ipdevice == NULL) ...
false
false
false
false
false
0
process_item (GtrWindow * window, GSList * items, gint * item_position) { GtrView *view; GtkTextBuffer *buffer; GSList *item; if (items == NULL) return; if (*item_position >= g_slist_length (items)) *item_position = 0; item = g_slist_nth (items, *item_position); view = gtr_window_get_active_vi...
false
false
false
false
false
0
GetPropertyByLookup(i::Isolate* isolate, i::Handle<i::JSObject> receiver, i::Handle<i::String> name, i::LookupResult* lookup) { if (!lookup->IsProperty()) { // No real property was found. re...
false
false
false
false
false
0
hash_foreach_func(gpointer hkey, gpointer hvalue, gpointer hdata) { GQuark key = GPOINTER_TO_UINT(hkey); GValue *value = (GValue*)hvalue; PrefixData *pfdata = (PrefixData*)hdata; const gchar *name; if (pfdata->prefix && (!(name = g_quark_to_string(key)) || !g_str_has_prefix(name...
false
false
false
false
false
0
wpa_start ( struct net80211_device *dev, struct wpa_common_ctx *ctx, const void *pmk, size_t pmk_len ) { struct io_buffer *iob; struct ieee80211_frame *hdr; struct ieee80211_beacon *beacon; u8 *ap_rsn_ie = NULL, *ap_rsn_ie_end; if ( ! dev->rsn_ie || ! dev->associating ) return -EINVAL; ctx->dev = dev; memc...
false
true
false
false
false
1
spl_dual_it_dtor(zend_object *_object, zend_object_handle handle TSRMLS_DC) { spl_dual_it_object *object = (spl_dual_it_object *)_object; /* call standard dtor */ zend_objects_destroy_object(_object, handle TSRMLS_CC); spl_dual_it_free(object TSRMLS_CC); if (object->inner.iterator) { object->inner.iter...
false
false
false
false
false
0
InitEmpty() { GLOBAL_MUTEX_LOCK(empty_mutex); if (empty_string == NULL) { empty_string = new string; empty_named_groups = new map<string, int>; empty_group_names = new map<int, string>; } GLOBAL_MUTEX_UNLOCK(empty_mutex); }
false
false
false
false
false
0
ListParent(Tcl_Interp *interp, XOTclObject *obj) { if (obj->id) { Tcl_SetResult(interp, NSCmdFullName(obj->id), TCL_VOLATILE); } return TCL_OK; }
false
false
false
false
false
0
jpeg_codec_sleep (struct zoran *zr, int sleep) { GPIO(zr, zr->card.gpio[ZR_GPIO_JPEG_SLEEP], !sleep); if (!sleep) { dprintk(3, KERN_DEBUG "%s: jpeg_codec_sleep() - wake GPIO=0x%08x\n", ZR_DEVNAME(zr), btread(ZR36057_GPPGCR1)); udelay(500); } else { dprintk(3, KERN_DEBUG "%s: jpeg_c...
false
false
false
false
false
0
permission_combo_add_multiple_choice (GtkComboBox *combo, GtkTreeIter *iter) { GtkTreeModel *model; GtkListStore *store; gboolean found; model = gtk_combo_box_get_model (combo); store = GTK_LIST_STORE (model); found = FALSE; gtk_tree_model_get_iter_first (model, iter); do { gboolean multi; gtk_tree_model_...
false
false
false
false
false
0
exponent(double a, int8_t b) { if (b>0) return (a * exponent(a, --b)); /* a * a ... */ if (b<0) return ((1/a) * exponent(a, ++b)); /* (1/a) * (1/a) ... */ return 1; }
false
false
false
false
false
0
rl_function_of_keyseq (keyseq, map, type) const char *keyseq; Keymap map; int *type; { register int i; if (map == 0) map = _rl_keymap; for (i = 0; keyseq && keyseq[i]; i++) { unsigned char ic = keyseq[i]; if (META_CHAR (ic) && _rl_convert_meta_chars_to_ascii) { if (map[ES...
false
false
false
true
false
1
copy(const GABinaryString& orig) { if(&orig == this) return; resize(orig.sz); memcpy(data, orig.data, SZ*sizeof(GABit)); }
false
false
false
false
false
0
p_newline(li_object *args) { FILE *f; f = stdout; if (args) { assert_nargs(1, args); assert_port(li_car(args)); f = li_to_port(li_car(args)).file; } li_newline(f); return li_null; }
false
false
false
false
false
0
intel_uncore_forcewake_put__locked(struct drm_i915_private *dev_priv, enum forcewake_domains fw_domains) { assert_spin_locked(&dev_priv->uncore.lock); if (!dev_priv->uncore.funcs.force_wake_put) return; __intel_uncore_forcewake_put(dev_priv, fw_domains); }
false
false
false
false
false
0
GetPartArrayName( int a ) { if ( a < 0 || a >= (int) this->P->PartNames.size() ) return 0; return this->P->PartNames[a].c_str(); }
false
false
false
false
false
0
peerWriteBytes(ConnectInfo* peer, const char* command) { int fd = _peerHandlers[peer->mode].descriptor(peer); if (fd < 0) { logger(L_DBG,"[DS]: peerWriteBytes() no connection data"); return EXIT_NOK; } // send command if (fd >= 0 && command && command[0]) { char byteStr[MAX...
false
false
false
false
false
0
initial_reordering_syllable (const hb_ot_shape_plan_t *plan, hb_face_t *face, hb_buffer_t *buffer, unsigned int start, unsigned int end) { syllable_type_t syllable_type = (syllable_type_t) (buffer->info[start].syllable() & 0x0F); switch (syllable_type) { case consonant_syllable: initial_re...
false
false
false
false
false
0