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
genlist_pop_front(struct genlist *pgenlist) { fc_assert_ret(NULL != pgenlist); if (NULL != pgenlist->head_link) { genlist_link_destroy(pgenlist, pgenlist->head_link); } }
false
false
false
false
false
0
dvb_get_transmission_mode_val (const gchar* transmode) { DVBDvbSrcTransmissionMode result = 0; DVBDvbSrcTransmissionMode val = 0; const gchar* _tmp0_ = NULL; g_return_val_if_fail (transmode != NULL, 0); _tmp0_ = transmode; if (g_strcmp0 (_tmp0_, "2k") == 0) { val = DVB_DVB_SRC_TRANSMISSION_MODE_TRANSMISSION_MOD...
false
false
false
false
false
0
is_connected(const char *worldname) { World *w; if (!worldname || !*worldname) { if (!xsock) return 0; w = xsock->world; } else if (!(w = find_world(worldname))) { return 0; } return (w->sock && (w->sock->constate == SS_CONNECTED)); }
false
false
false
false
false
0
focusblur_fft_work_free_buffers (FblurFftBuffer *fft) { GSList *list, *next; for (list = fft->work.buffers; list; list = next) { next = list->next; if (list->data) fftwf_free (list->data); g_slist_free_1 (list); } fft->work.buffers = NULL; }
false
false
false
false
false
0
json_parser_dom_init(json_parser_dom *dom, json_parser_dom_create_structure create_structure, json_parser_dom_create_data create_data, json_parser_dom_append append) { memset(dom, 0, sizeof(*dom)); dom->stack_size = 1024; dom->stack_offset = ...
false
false
false
false
false
0
list_games_aux(gpointer data, gpointer user_data) { const struct game* g = data; if (g->status == GAME_STATUS_OPEN) { char* game; games_open++; strconcat(list_games_str, "[", sizeof(list_games_str)); game = list_game(g); str...
false
false
false
false
false
0
vtkGetSturmSequence( double* P, int d, double* SSS, int* degrees, int* offsets, double rtol ) { degrees[0] = d; offsets[0] = 0; int dp1 = d + 1; int dm1 = d - 1; degrees[1] = dm1; offsets[1] = dp1; int offset = dp1; // nSSS will keep track of the number of the index of // the last item in our list...
false
false
false
false
false
0
same(const string a, const string b) { return case_insensitive ? strcasecmp(a, b) == 0 : eq(a, b); }
false
false
false
false
false
0
setup_volume_serial(uint32_t user_defined) { struct timeval now; if (user_defined != 0) return user_defined; if (gettimeofday(&now, NULL) != 0) { exfat_error("failed to form volume id"); return 0; } return (now.tv_sec << 20) | now.tv_usec; }
false
false
false
false
false
0
new_state(tp) char *tp; { struct state *snew = (struct state *)alloc(sizeof *snew); char tmp[1024]; *snew = empty_state; snew->number = n_states++; snew->next = NULL; if(scur) scur->next = snew; scur = snew; if(stop == NULL) stop = snew; if(tp) { strncpy(tmp, buf, tp - buf); tmp[tp - buf] = '\0';...
false
false
false
false
false
0
VerifyStrongSignature( TMPQArchive * ha, PMPQ_SIGNATURE_INFO pSI) { unsigned char reversed_signature[MPQ_STRONG_SIGNATURE_SIZE]; unsigned char Sha1Digest_tail0[SHA1_DIGEST_SIZE]; unsigned char Sha1Digest_tail1[SHA1_DIGEST_SIZE]; unsigned char Sha1Digest_tail2[SHA1_DIGEST_SIZE]; unsig...
false
false
false
false
false
0
synchronise_request() { ASSERT_OMNI_TRACEDMUTEX_HELD(*omni::internalLock, 1); // Wait until the request can proceed, or discard it. // We limit the number of threads stuck here, so as to more // closely match the semantics of the old BOA -- where // clients would be stuck in a queue on the socket, waiting ...
false
false
false
false
false
0
matewnck_tasklist_score_groups (MatewnckTasklist *tasklist, GList *ungrouped_class_groups) { MatewnckTask *class_group_task; MatewnckTask *win_task; GList *l, *w; const char *first_name = NULL; int n_windows; int n_same_title; double same_window_ratio; l = ungrouped_class_groups; while ...
false
false
false
false
false
0
init_new_pcap(const char * filename) { FILE * f; f = openfile(filename, "wb", 1); if (f != NULL) { if( fwrite( &_pfh_out, 1, sizeof( _pfh_out ), f ) != (size_t) sizeof( _pfh_out ) ) { perror( "fwrite(pcap file header) failed" ); } } return f; }
false
false
false
false
true
1
postfixcmp(const char *string, const char *postfix) { int len1 = strlen(string), len2 = strlen(postfix); if (len1 < len2) return 1; return strcmp(string + len1 - len2, postfix); }
false
false
false
false
false
0
DoMiter() { if ((normals[m_k].X * normals[m_j].Y - normals[m_j].X * normals[m_k].Y) * m_delta >= 0) { double q = m_delta / m_R; AddPoint(IntPoint((long64)Round(m_p[m_i][m_j].X + (normals[m_k].X + normals[m_j].X) * q), (long64)Round(m_p[m_i][m_j].Y + (normals[m_k].Y + nor...
false
false
false
false
false
0
egg_asn1x_get_integer_as_ulong (GNode *node, gulong *value) { gboolean ret; GBytes *data; g_return_val_if_fail (node != NULL, FALSE); g_return_val_if_fail (value != NULL, FALSE); g_return_val_if_fail (anode_def_type (node) == EGG_ASN1X_INTEGER, FALSE); data = anode_get_value (nod...
false
false
false
false
false
0
_device_is_pending(Eina_List *list, void *event, Evas_Callback_Type event_type) { int device = ELM_MOUSE_DEVICE; switch (event_type) { case EVAS_CALLBACK_MOUSE_UP: break; case EVAS_CALLBACK_MULTI_UP: device = ((Evas_Event_Multi_Up *)event)->...
false
false
false
false
false
0
ars_udptcp_cksum(struct ars_packet *pkt, int layer, u_int16_t *sum) { struct ars_iphdr *ip; struct ars_pseudohdr pseudo; struct mc_context mc; /* multi-buffer checksum context */ int j = layer - 1, err; /* search the first IP layer on the left: * it returns an error if between the IP and * the TCP layer there...
false
false
false
false
false
0
has(const Equivalence&e)const { list<Equivalence> ::const_reverse_iterator rit= equis.rbegin(); while(rit!=equis.rend()&&*rit!=e) ++rit; if(rit!=equis.rend()) return true; return false; }
false
false
false
false
false
0
r8712_xmit_enqueue(struct _adapter *padapter, struct xmit_frame *pxmitframe) { if (r8712_xmit_classifier(padapter, pxmitframe) == _FAIL) { pxmitframe->pkt = NULL; return _FAIL; } return _SUCCESS; }
false
false
false
false
false
0
efreet_mime_mime_types_load(const char *file) { const Eina_File_Line *ln; Eina_Iterator *it; Eina_File *f; const char *head_line; const char *word_start; const char *mimetype; f = eina_file_open(file, 0); if (!f) return ; it = eina_file_map_lines(f); if (it) { Eina_Strbuf *e...
false
false
false
false
false
0
mark_region_for_xdamage(sraRegionPtr region) { sraRectangleIterator *iter; sraRect rect; iter = sraRgnGetIterator(region); while (sraRgnIteratorNext(iter, &rect)) { int x1 = rect.x1; int y1 = rect.y1; int x2 = rect.x2; int y2 = rect.y2; mark_for_xdamage(x1, y1, x2 - x1, y2 - y1); } sraRgnReleaseIterator...
false
false
false
false
false
0
calculateValue(void) { UT_UCSChar sz_ucs_FieldValue[FPFIELD_MAX_LENGTH + 1]; sz_ucs_FieldValue[0] = 0; char szFieldValue[FPFIELD_MAX_LENGTH + 1]; time_t tim = time(NULL); struct tm *pTime = localtime(&tim); strftime(szFieldValue, FPFIELD_MAX_LENGTH, "%j", pTime); if (getField()) getField()->setValue(static_...
false
false
false
false
false
0
parse_gtk_relief_style (CRTerm const *values, ccss_gtk_property_t *property) { char const *str; bool ret; g_return_val_if_fail (values && property, false); ret = false; switch (values->type) { case TERM_IDENT: case TERM_STRING: ret = true; str = cr_string_peek_raw_str (values->content.str); if (0 =...
false
false
false
false
false
0
ontty() { char *p, *ttyname(); static char buf[MAXPATHLEN + 5]; int result; buf[0] = 0; if ((p = ttyname(STDERR_FILENO))) { result = snprintf(buf, sizeof(buf), " on %s", p); if (SNPRINTF_OVERFLOW(result, sizeof(buf))) { fprintf(stderr, _("terminal name %s too long\n"), p...
false
false
false
false
false
0
tuple_formatter_process_string (const Tuple * tuple, const char * string) { static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; pthread_mutex_lock (& mutex); static char *last_string = NULL; static TupleEvalContext *last_ctx = NULL; static TupleEvalNode *last_ev = NULL; if (! last_string...
false
false
false
false
false
0
changeDependencyFor(Oid classId, Oid objectId, Oid refClassId, Oid oldRefObjectId, Oid newRefObjectId) { long count = 0; Relation depRel; ScanKeyData key[2]; SysScanDesc scan; HeapTuple tup; ObjectAddress objAddr; bool newIsPinned; depRel = heap_open(DependRelationId, RowExclusiveLock); /* * If...
false
false
false
false
false
0
HA_AlignFromTemplate(const char *HA_template, int ncols, int tcols, int trepeat) { char *s, *cell, *align; int i; align = (char *) malloc( (ncols+2)*sizeof(char)); align[0] = '*'; align[ncols+1] = '\0'; for (i=1; i<=ncols; i++) { cell = HA_GetCellTemplateN(HA_template, i, tcols...
false
false
false
false
false
0
Free_BaseArray( HB_BaseArray* ba, HB_UShort num_classes ) { HB_BaseRecord *br; HB_Anchor *bans; if ( ba->BaseRecord ) { br = ba->BaseRecord; if ( ba->BaseCount ) { HB_UShort i, count; count = num_classes * ba->BaseCount; bans = br[0].BaseAnchor; for ...
false
false
false
false
false
0
igor_detect(const GwyFileDetectInfo *fileinfo, gboolean only_name) { if (only_name) return g_str_has_suffix(fileinfo->name_lowercase, EXTENSION) ? 10 : 0; if (fileinfo->buffer_len >= MIN_FILE_SIZE) { IgorFile igorfile; if (igor_read_headers(&igorfile, fileinfo->head, fileinfo...
false
false
false
false
false
0
fmtchar(VOIDP x, file_format_t ff, FILE *ofp) { if (isprint(*(unsigned char *) x)) { putc(*((char *) x), ofp); return (1); } else { putc('\\', ofp); return (1 + fprintf(ofp, "%03o", *((uchar8 *) x))); } }
false
false
false
false
false
0
PT_analyse_tree(POS_TREE *pt,int height) { PT_NODE_TYPE type; POS_TREE *pt_help; int i; int basecnt; type = PT_read_type(pt); switch (type) { case PT_NT_NODE: ptds->nodes[height]++; basecnt = 0; for (i=PT_QU; i<PT_B_MAX; i++) { if (...
false
false
false
false
true
1
bnx2x_set_power_state(struct bnx2x *bp, pci_power_t state) { u16 pmcsr; /* If there is no power capability, silently succeed */ if (!bp->pdev->pm_cap) { BNX2X_DEV_INFO("No power capability. Breaking.\n"); return 0; } pci_read_config_word(bp->pdev, bp->pdev->pm_cap + PCI_PM_CTRL, &pmcsr); switch (state) { ...
false
false
false
false
false
0
FreeVoiceList() {//================= for(int ix=0; ix<n_voices_list; ix++) { if(voices_list[ix] != NULL) { free(voices_list[ix]); voices_list[ix] = NULL; } } n_voices_list = 0; }
false
false
false
false
false
0
operator()(const as_value& val) { // Store even elements and continue if (!(_i++ % 2)) { _key = val; return; } // Both elements apparently must be strings, or we move onto the // next pair. if (!val.is_string() || !_key.is_string()) return; ...
false
false
false
false
false
0
setaside_remaining_output(ap_filter_t *f, core_output_filter_ctx_t *ctx, apr_bucket_brigade *bb, conn_rec *c) { if (bb == NULL) { return; } remove_empty_buckets(bb); if (!APR_BRIGADE...
false
false
false
false
false
0
str_ni_equals(const char* s1, const char* s2, int max) { int i = 0; while (s1[i] != 0 && s2[i] != 0 && i < max) { if (toupper(s1[i]) != toupper(s2[i])) return false; i++; } if (i == max) return true; return s1[i] == 0 && s2[i] == 0; }
false
false
false
false
false
0
sil164_probe(struct i2c_client *client, const struct i2c_device_id *id) { int vendor = sil164_read(client, SIL164_VENDOR_HI) << 8 | sil164_read(client, SIL164_VENDOR_LO); int device = sil164_read(client, SIL164_DEVICE_HI) << 8 | sil164_read(client, SIL164_DEVICE_LO); int rev = sil164_read(client, SIL164_REVISION...
false
false
false
false
false
0
lad_sm_add_peel_strip_mining_cmp(StripMiningCMP *sm_cmp, int peel) { if (sm_cmp->peel == 0) { sm_cmp->peel = peel; return; } if (peel > sm_cmp->peel) { sm_cmp->peel = peel; return; } }
false
false
false
true
false
1
igb_release_phy_82575(struct e1000_hw *hw) { u16 mask = E1000_SWFW_PHY0_SM; if (hw->bus.func == E1000_FUNC_1) mask = E1000_SWFW_PHY1_SM; else if (hw->bus.func == E1000_FUNC_2) mask = E1000_SWFW_PHY2_SM; else if (hw->bus.func == E1000_FUNC_3) mask = E1000_SWFW_PHY3_SM; hw->mac.ops.release_swfw_sync(hw, mask...
false
false
false
false
false
0
stih416_dac_probe(struct snd_soc_dai *dai) { struct snd_soc_codec *codec = dai->codec; struct sti_sas_data *drvdata = dev_get_drvdata(codec->dev); struct sti_dac_audio *dac = &drvdata->dac; /* Get reset control */ dac->rst = devm_reset_control_get(codec->dev, "dac_rst"); if (IS_ERR(dac->rst)) { dev_err(dai->co...
false
false
false
false
false
0
dm_SQL_U8toW (SQLCHAR * inStr, SQLSMALLINT size) { SQLWCHAR *outStr = NULL; size_t len; if (inStr == NULL) return NULL; if (size == SQL_NTS) { outStr = strdup_U8toW (inStr); } else { len = utf8_len (inStr, size); if ((outStr = (SQLWCHAR *) calloc (len + 1, sizeof (SQLWCHAR)...
false
false
false
false
false
0
blkid_parse_tag_string(const char *token, char **ret_type, char **ret_val) { char *name, *value, *cp; DBG(DEBUG_TAG, printf("trying to parse '%s' as a tag\n", token)); if (!token || !(cp = strchr(token, '='))) return -1; name = blkid_strdup(token); if (!name) return -1; value = name + (cp - token); *value...
false
false
false
false
false
0
GetColorInterpretation() { if( eFormat == JPEGRGB) { switch( nRGBBand ) { case 1: return GCI_RedBand; case 2: return GCI_GreenBand; case 3: return GCI_BlueBand; } return GCI_GrayIndex; } else { if(...
false
false
false
false
false
0
handle_method_call_dissociate (TrackerMinerWeb *miner, GDBusMethodInvocation *invocation, GVariant *parameters) { GError *local_error = NULL; TrackerDBusRequest *request; request = tracker_g_dbus_request_begin (invocation, "%s()", __PR...
false
false
false
false
false
0
termTextLength() { if ( _termTextLen == -1 ) //it was invalidated by growBuffer _termTextLen = _tcslen(_buffer); return _termTextLen; }
false
false
false
false
false
0
filename_to_uri (const char *path) { struct stat st; char *mrl; if (stat (path, &st)) st.st_mode = 0; /* invalid */ if ((mrl = filename_to_dvd (path, &st))) return mrl; if ((mrl = filename_to_vcd (path, &st))) return mrl; return g_filename_to_uri (path, NULL, NULL); }
false
false
false
false
false
0
runner_redir (runner_t *runner, int fd, int tgt_fd) { GF_ASSERT (fd > 0 && fd < 3); if ((fd > 0) && (fd < 3)) runner->chfd[fd] = (tgt_fd >= 0) ? tgt_fd : -2; }
false
false
false
false
false
0
OpenFile(const Pathname &filename, const std::string &mode) { FileStream *fs = new FileStream(); if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { delete fs; fs = NULL; } return fs; }
false
false
false
false
false
0
print(String *str, enum_query_type query_type) { str->append(STRING_WITH_LEN("<ref_null_helper>(")); if (ref) (*ref)->print(str, query_type); else str->append('?'); str->append(')'); }
false
false
false
false
false
0
CanPillage(Unit *u) { forlist(&objects) { Object *obj = (Object *)elem; forlist (&obj->units) { Unit *u2 = (Unit *)elem; if(u2->guard == GUARD_GUARD && u2->IsAlive() && u2->faction != u->faction) return 0; } } return 1; }
false
false
false
false
false
0
oc_mode_scheme_chooser_reset(oc_mode_scheme_chooser *_chooser){ int si; memset(_chooser->mode_counts,0,OC_NMODES*sizeof(*_chooser->mode_counts)); /*Scheme 0 starts with 24 bits to store the mode list in.*/ _chooser->scheme_bits[0]=24; memset(_chooser->scheme_bits+1,0,7*sizeof(*_chooser->scheme_bits)); for(s...
false
false
false
false
false
0
st21nfca_hci_target_from_gate(struct nfc_hci_dev *hdev, u8 gate, struct nfc_target *target) { int r, len; u16 atqa; u8 sak; u8 uid[NFC_NFCID1_MAXSIZE]; switch (gate) { case ST21NFCA_RF_READER_F_GATE: target->supported_protocols = NFC_PROTO_FELICA_MASK; break; case ST21NFCA_RF_READER_14443_3_A_GATE: ...
false
true
false
false
false
1
c_attrs_has_key (VALUE self, VALUE key) { RbCollection *coll = NULL; VALUE tmp; int s; StringValue (key); tmp = rb_iv_get (self, "collection"); Data_Get_Struct (tmp, RbCollection, coll); s = xmmsc_coll_attribute_get (coll->real, StringValuePtr (key), NULL); return s ? Qtrue : Qfalse; }
false
false
false
false
false
0
rtw_surveydone_event_callback(struct adapter *adapter, u8 *pbuf) { struct mlme_priv *pmlmepriv = &(adapter->mlmepriv); spin_lock_bh(&pmlmepriv->lock); if (pmlmepriv->wps_probe_req_ie) { pmlmepriv->wps_probe_req_ie_len = 0; kfree(pmlmepriv->wps_probe_req_ie); pmlmepriv->wps_probe_req_ie = NULL; } RT_TRACE(...
false
false
false
false
false
0
regex_transform( FRAME * frame, int flags ) { LIST * const l = lol_get( frame->args, 0 ); LIST * const pattern = lol_get( frame->args, 1 ); LIST * const indices_list = lol_get( frame->args, 2 ); int * indices = 0; int size; LIST * result = L0; if ( !list_empty( indices_list ) ) { ...
false
true
false
false
true
1
xsltResolveSASCallback(xsltAttrElemPtr values, xsltStylesheetPtr style, const xmlChar *name, const xmlChar *ns, ATTRIBUTE_UNUSED const xmlChar *ignored) { xsltAttrElemPtr tmp; xsltAttrElemPtr refs; tmp = values; while (tmp != NULL) { if (tmp->set != NULL) { /* * Che...
false
false
false
false
false
0
RenderRow(struct __ecereNameSpace__ecere__com__Instance * browser, struct __ecereNameSpace__ecere__com__Instance * surface, struct Block * row, struct Block * table, int x, int y) { struct Block * cell; int c = 0; struct Column * column = table->columns.first; for(cell = row->subBlocks.first; cell; cell = cell->next) ...
false
false
false
false
false
0
ar_clock_stop_timer (ArClock *clock_widget) { if (clock_widget->priv->update_timeout_id != 0) { g_source_remove (clock_widget->priv->update_timeout_id); clock_widget->priv->update_timeout_id = 0; } }
false
false
false
false
false
0
options() { OptionsDialog dialog(this); connect(&dialog, SIGNAL( optionsChanged() ), crawlerWidget, SLOT( applyConfiguration() )); dialog.exec(); }
false
false
false
false
false
0
env_parse(char *env_string, char **env_name, char **env_val) { char *e, *p, *q; p = q = NULL; if (env_string != NULL && env_string[0] != '\0') { if ((e = strchr(env_string, '=')) == NULL) { if (env_val != NULL) q = strdup(env_string); } else { p = (char *) malloc(e - env_string + 1); strncpy(p, env...
false
true
false
false
false
1
KB_realloc(ptr,size) char *ptr; size_t size; #endif { char *newptr; if ( memdebug ) { #ifdef MEMSTRINGS sprintf(errmsg,"%30.30s %4d: realloc old %p size %d to size %d \n", file,line,ptr, (ptr ? ((struct memhead *)ptr)[-1].size:0) ,size); #else sprintf(errmsg,"realloc old %p size %d to size %d \...
false
false
false
false
false
0
mxl5007t_read_reg(struct mxl5007t_state *state, u8 reg, u8 *val) { u8 buf[2] = { 0xfb, reg }; struct i2c_msg msg[] = { { .addr = state->i2c_props.addr, .flags = 0, .buf = buf, .len = 2 }, { .addr = state->i2c_props.addr, .flags = I2C_M_RD, .buf = val, .len = 1 }, }; int ret; ret = i2c_transfer(state->...
false
false
false
false
false
0
OTFAUX_State_processCounter( OTFAUX_State* auxState, uint64_t eventTime, uint64_t processId, uint32_t counterId, uint64_t value, void* eventData ) ...
false
false
false
false
false
0
__midgard_user_query (MidgardConnection *mgd, guint n_params, const GParameter *parameters) { g_return_val_if_fail (mgd != NULL, NULL); g_return_val_if_fail (parameters != NULL, NULL); MidgardUser **result = NULL; if (n_params == 0) { MIDGARD_ERRNO_SET_STRING (mgd, MGD_ERR_INTERNAL, "Expected one parameter (at l...
false
false
false
false
false
0
getfile(bool convert) const { std::string f = Path::simplifyPath(_file.c_str()); if (convert) f = Path::toNativeSeparators(f); return f; }
false
false
false
false
false
0
GetDate(vtkTypeUInt64 time, int& year, int& month, int& day) { int y, m, d; int julianDay = static_cast<int>(time / MILLIS_PER_DAY); if (julianDay >= 2299161) { // Gregorian calendar starting from October 15, 1582 // This algorithm is from Henry F. Fliegel and Thomas C. Van Flandern int ell, ...
false
false
false
false
false
0
e_table_sorting_utils_add_to_cmp_cache (gpointer cmp_cache, const gchar *key, gchar *value) { g_return_if_fail (cmp_cache != NULL); g_return_if_fail (key != NULL); g_hash_table_insert ( cmp_cache, (gchar *) camel_pstring_strdup (key),...
false
false
false
false
false
0
i2d_PUBKEY(EVP_PKEY *a, unsigned char **pp) { X509_PUBKEY *xpk=NULL; int ret; if(!a) return 0; if(!X509_PUBKEY_set(&xpk, a)) return 0; ret = i2d_X509_PUBKEY(xpk, pp); X509_PUBKEY_free(xpk); return ret; }
false
false
false
false
false
0
tele_restrict(mon) struct monst *mon; { if (level.flags.noteleport) { if (canseemon(mon)) pline("A mysterious force prevents %s from teleporting!", mon_nam(mon)); return TRUE; } return FALSE; }
false
false
false
false
false
0
DC16NoTop(uint8_t *dst) { // DC with top samples not available int DC = 8; int j; for (j = 0; j < 16; ++j) { DC += dst[-1 + j * BPS]; } Put16(DC >> 4, dst); }
false
false
false
false
true
1
fm_file_action_profile_free (FmFileActionProfile* self) { _g_free0 (self->id); _g_free0 (self->name); _g_free0 (self->exec); _g_free0 (self->path); _g_free0 (self->startup_wm_class); _g_free0 (self->exec_as); _fm_file_action_condition_free0 (self->condition); g_slice_free (FmFileActionProfile, self); }
false
false
false
false
false
0
create_menu_item( GtkAction* action ) { GtkWidget* item = 0; if ( IS_EGE_ADJUSTMENT_ACTION(action) ) { EgeAdjustmentAction* act = EGE_ADJUSTMENT_ACTION( action ); GValue value; const gchar* sss = 0; GtkWidget* subby = 0; memset( &value, 0, sizeof(value) ); g_v...
false
false
false
false
false
0
realtime_user(const char *username, struct sockaddr_in *sin) { struct ast_variable *var; struct ast_variable *tmp; struct iax2_user *user=NULL; var = ast_load_realtime("iaxusers", "name", username, "host", "dynamic", SENTINEL); if (!var) var = ast_load_realtime("iaxusers", "name", username, "host", ast_inet_nto...
false
false
false
false
false
0
findSubEntityForVertexData(const VertexData* orig) { if (orig == mMesh->sharedVertexData) { return 0; } SubEntityList::iterator i, iend; iend = mSubEntityList.end(); for (i = mSubEntityList.begin(); i != iend; ++i) { SubEntity* se = *i...
false
false
false
false
false
0
fan_exit(void) { vdbg_printk(TPACPI_DBG_EXIT | TPACPI_DBG_FAN, "cancelling any pending fan watchdog tasks\n"); /* FIXME: can we really do this unconditionally? */ sysfs_remove_group(&tpacpi_sensors_pdev->dev.kobj, &fan_attr_group); driver_remove_file(&tpacpi_hwmon_pdriver.driver, &driver_attr_fan_watch...
false
false
false
false
false
0
test_man_remove_two_direct(hid_t fapl, H5HF_create_t *cparam, fheap_test_param_t *tparam) { hid_t file = -1; /* File ID */ hid_t dxpl = H5P_DATASET_XFER_DEFAULT; /* DXPL to use */ char filename[FHEAP_FILENAME_LEN]; /* Filename to use */ H5F_t *f = NULL; /* Int...
true
true
false
false
false
1
do_set_multicast(struct work_struct *w) { struct net_device_context *ndevctx = container_of(w, struct net_device_context, work); struct hv_device *device_obj = ndevctx->device_ctx; struct net_device *ndev = hv_get_drvdata(device_obj); struct netvsc_device *nvdev = ndevctx->nvdev; struct rndis_device *rdev; if ...
false
false
false
false
false
0
startMusic( void) { if( _playMusic) { string soundtrack = ""; if( _playDefaultSoundtrack) { //look in developer file tree first soundtrack = string("../data/music/lg-criti.xm"); struct stat statInfo; if( stat( soundtrack.c_str(), &statInfo) == -1) { //try global soundtrack = ge...
false
false
false
false
false
0
CopyTo(MethodDescriptorProto* proto) const { proto->set_name(name()); if (!input_type()->is_unqualified_placeholder_) { proto->set_input_type("."); } proto->mutable_input_type()->append(input_type()->full_name()); if (!output_type()->is_unqualified_placeholder_) { proto->set_output_type("."); } ...
false
false
false
false
false
0
obj_is_used_unaimed(const object_type *o_ptr) { int effect; if ((o_ptr->tval == TV_STAFF) || (o_ptr->tval == TV_SCROLL) || (o_ptr->tval == TV_POTION) || (o_ptr->tval == TV_FOOD)) { return TRUE; } if ((o_ptr->tval == TV_ROD) && !(!object_flavor_is_aware(o_ptr))) { return TRUE; } if ((o_ptr->tval =...
false
false
false
false
false
0
ud_update_start(struct fb_info *info) { struct fbcon_ops *ops = info->fbcon_par; int xoffset, yoffset; u32 vyres = GETVYRES(ops->p->scrollmode, info); u32 vxres = GETVXRES(ops->p->scrollmode, info); int err; xoffset = vxres - info->var.xres - ops->var.xoffset; yoffset = vyres - info->var.yres - ops->var.yoffset...
false
false
false
false
false
0
xdrrec_endofrecord (XDR *xdrs, bool_t sendnow) { RECSTREAM *rstrm = (RECSTREAM *) xdrs->x_private; u_long len; /* fragment length */ if (sendnow || rstrm->frag_sent || rstrm->out_finger + BYTES_PER_XDR_UNIT >= rstrm->out_boundry) { rstrm->frag_sent = FALSE; return flush_out (rstrm, TRUE); ...
false
false
false
false
false
0
get_bg_tile_info(int tile_index) { int attr = colorram[tile_index]; int code = videoram[tile_index] + (gfxbank << 12) + ((attr & 0x07) << 8) + ((attr & 0x80) << 4); int color = (gfxbank << 5) + (attr >> 3); SET_TILE_INFO(0, code, color, 0) }
false
false
false
false
false
0
CheckForTip(int x, int y) { int num, bx, by, trunc; char *name; if (MouseInStartButton(x, y, &whichButton, &startButtonPressed, NULL)) { if((!whichButton) && (First_Start_Button->isStartButton)) { if (Tip.type != START_TIP) PopupTipWindow(3, 0, _("Click here to start")); Tip.type = START_TIP...
false
false
false
false
false
0
readApply() { char * token = needNextToken(); bool strict = true; int count; statisticCreator * statistics = readStatisticList(&token, &count); if (strcmp(token, "fillIn") == 0) { strict = false; token = needNextToken(); } WiggleIterator * regions = readIteratorToken(token); WiggleIterator * data = readIt...
false
false
false
false
false
0
gtk_multiview_prepend_child(GtkMultiview * multiview, GtkWidget * child) { g_return_if_fail(multiview != NULL); g_return_if_fail(GTK_IS_MULTIVIEW(multiview)); g_return_if_fail(child != NULL); g_return_if_fail(GTK_IS_WIDGET(child)); gtk_multiview_insert_child(multiview, NULL, child); }
false
false
false
false
false
0
GMT_map_jump_x (double x0, double y0, double x1, double y1) { /* TRUE if x-distance between points exceeds 1/2 map width at this y value */ double dx, map_half_size; if (! (GMT_IS_CYLINDRICAL || GMT_IS_MISC)) return (0); /* Only projections with peroidic boundaries may apply */ if (!GMT_IS_MAPPING || fabs (proje...
false
false
false
false
false
0
IsSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, const MCSymbolData &DataA, const MCFragment &FB, bool InSet, bool IsPCRel) const { if (InSet) r...
false
false
false
false
false
0
modem_dialout_exit(struct cpssp *cpssp) { /* still connected --> hang up */ if (cpssp->dialout.state == STATE_ONLINE) { modem_phone_send_ctrl(cpssp, SIG_TELE_HANGUP); } }
false
false
false
false
false
0
gst_mpdparser_free_period_node (GstPeriodNode * period_node) { if (period_node) { if (period_node->id) xmlFree (period_node->id); gst_mpdparser_free_seg_base_type_ext (period_node->SegmentBase); gst_mpdparser_free_segment_list_node (period_node->SegmentList); gst_mpdparser_free_segment_template_...
false
false
false
false
false
0
getTnsMaxBands( const INT sampleRate, const INT granuleLength, const INT isShortBlock ) { int i; INT numBands = -1; const TNS_MAX_TAB_ENTRY *pMaxBandsTab = NULL; int maxBandsTabSize = 0; switch (granuleLength) { case 960: case 1024: pMaxBandsTab = tnsMaxBandsTab1...
false
false
false
false
false
0
printAdditionalCode(ostream& fout) { if (fNeedPowerDef) { // Add faustpower definition to C++ code fout << "#include <cmath>" << endl; fout << "template <int N> inline float faustpower(float x) { return powf(x,N); } " << endl; fout << "template <int N> inline double faustpower(doub...
false
false
false
false
false
0
lazy_opts(OPTIONS *o) { o->syntax = load_dfa(o->syntax_name); o->charmap = find_charmap(o->map_name); if (!o->charmap) o->charmap = fdefault.charmap; /* Hex not allowed with UTF-8 */ if (o->hex && o->charmap->type) { o->charmap = find_charmap(US "c"); } }
false
false
false
false
false
0
env_shift(void) { char **env; rb_secure(4); env = GET_ENVIRON(environ); if (*env) { char *s = strchr(*env, '='); if (s) { VALUE key = env_str_new(*env, s-*env); VALUE val = env_str_new2(getenv(RSTRING_PTR(key))); env_delete(Qnil, key); return rb_assoc_new(key, val); } } F...
false
false
false
false
false
0
rflGetBaseFileName( FLMUINT uiDbVersion, const char * pszDbPrefix, FLMUINT uiFileNum, char * pszBaseNameOut) { FLMINT iCnt = 0; FLMUINT uiDigit; char * pszTmp = pszBaseNameOut; if (uiDbVersion < FLM_FILE_FORMAT_VER_4_3) { // Output the database name prefix (up to three characters). f_strcpy( ps...
false
false
false
false
false
0
fimc_is_i2c_probe(struct platform_device *pdev) { struct device_node *node = pdev->dev.of_node; struct fimc_is_i2c *isp_i2c; struct i2c_adapter *i2c_adap; int ret; isp_i2c = devm_kzalloc(&pdev->dev, sizeof(*isp_i2c), GFP_KERNEL); if (!isp_i2c) return -ENOMEM; isp_i2c->clock = devm_clk_get(&pdev->dev, "i2c_is...
false
false
false
false
false
0
ims_pcu_disconnect(struct usb_interface *intf) { struct ims_pcu *pcu = usb_get_intfdata(intf); struct usb_host_interface *alt = intf->cur_altsetting; usb_set_intfdata(intf, NULL); /* * See if we are dealing with control or data interface. The cleanup * happens when we unbind primary (control) interface. */ ...
false
false
false
false
false
0
exo_icon_bar_calculate_item_size (ExoIconBar *icon_bar, ExoIconBarItem *item) { GdkPixbuf *pixbuf; gint focus_width; gint focus_pad; if (G_LIKELY (item->width != -1 && item->width != -1)) return; gtk_widget_style_get (GTK_WIDGET (icon_bar), ...
false
false
false
false
false
0