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
thread_iter_running(GtkTreeIter *iter, const char *tid) { thread_iter_unmark(iter, GINT_TO_POINTER(TRUE + pref_keep_exec_point)); gtk_list_store_set(store, iter, THREAD_STATE, RUNNING, pref_keep_exec_point ? -1 : THREAD_FILE, NULL, THREAD_LINE, 0, THREAD_BASE_NAME, NULL, THREAD_FUNC, NULL, THREAD_ADDR, NULL, THR...
false
false
false
false
false
0
gda_data_proxy_append_row (GdaDataModel *model, G_GNUC_UNUSED GError **error) { GdaDataProxy *proxy; gint i; g_return_val_if_fail (GDA_IS_DATA_PROXY (model), -1); proxy = GDA_DATA_PROXY (model); g_return_val_if_fail (proxy->priv, -1); gda_mutex_lock (proxy->priv->mutex); i = gda_data_proxy_append (proxy); gda_...
false
false
false
false
false
0
remove_user_from_channel(struct membership *msptr) { struct Client *client_p; struct Channel *chptr; s_assert(msptr != NULL); if(msptr == NULL) return; client_p = msptr->client_p; chptr = msptr->chptr; rb_dlinkDelete(&msptr->usernode, &client_p->user->channel); rb_dlinkDelete(&msptr->channode, &chptr->membe...
false
false
false
false
false
0
lbs_dev_open(struct net_device *dev) { struct lbs_private *priv = dev->ml_priv; int ret = 0; lbs_deb_enter(LBS_DEB_NET); if (!priv->iface_running) { ret = lbs_start_iface(priv); if (ret) goto out; } spin_lock_irq(&priv->driver_lock); netif_carrier_off(dev); if (!priv->tx_pending_len) netif_wake_que...
false
false
false
false
false
0
ReservedPatternSymbol( void *theEnv, char *theSymbol, char *checkedBy) { struct reservedSymbol *currentSymbol; for (currentSymbol = PatternData(theEnv)->ListOfReservedPatternSymbols; currentSymbol != NULL; currentSymbol = currentSymbol->next) { if (strcmp(theSymbol,currentSymbo...
false
false
false
false
false
0
rcr_decode_mismatch_qual(GtRcrDecoder *rcr_dec, GtBitInStream *bitstream, RcrDecodeInfo *info, GtError *err) { int had_err = 0; unsigned long symbol = 0; if (rcr_dec->store_var_qual) { had_err = rcr_hu...
false
false
false
false
false
0
lam_ssi_base_ao_process_args(OPT *ad) { int i, num_insts; char *buf = 0; int buflen = 0; if (!ao_taken(ad, "ssi")) return 0; num_insts = ao_ninsts(ad, "ssi"); for (i = 0; i < num_insts; ++i) lam_ssi_base_ao_process_arg(ao_param(ad, "ssi", i, 0), ao_param(ad, "ssi", i, 1)); /* Now put them ...
false
false
false
false
false
0
qla8044_lockless_flash_read_u32(struct scsi_qla_host *vha, uint32_t flash_addr, uint8_t *p_data, int u32_word_count) { uint32_t i; uint32_t u32_word; uint32_t flash_offset; uint32_t addr = flash_addr; int ret_val = QLA_SUCCESS; flash_offset = addr & (QLA8044_FLASH_SECTOR_SIZE - 1); if (addr & 0x3) { ql_log(...
false
false
false
false
false
0
write_el_recursive(int dim, EL *el) { FUNCNAME("write_el_recursive"); int i, n, node0, n1; static U_CHAR uc_no = 0, uc_yes = 1; DEBUG_TEST_EXIT(el, "el == nil\n"); if (el->child[0]) { DEBUG_TEST_EXIT(el->child[1], "child 0 but no child 1\n"); write_U_CHAR(uc_yes); } else write_U_...
false
false
false
false
false
0
clear_CP_Curves() { // unattach any existing shading curves and reset the list if (allCurves.size()) { foreach (QwtPlotCurve *curve, allCurves) delete curve; allCurves.clear(); } // now delete any labels if (allZoneLabels.size()) { foreach (QwtPlotMarker *label, ...
false
false
false
false
false
0
findOffset(const QString& key) { // Open device and datastream on it QIODevice* device = indexDevice(); if (!device) { return -1; } device->seek(mIndexRootOffset); QDataStream stream(device); // If we're already at the end of the stream then the root node doesn't // exist yet a...
false
false
false
false
false
0
mirror(FXbool horizontal,FXbool vertical){ FXTRACE((100,"%s::mirror(%d,%d)\n",getClassName(),horizontal,vertical)); if(horizontal || vertical){ if(data){ register FXuchar *paa,*pa,*pbb,*pb; register FXint sa=(8-width)&7; register FXint sb=8-sa; register FXuint t; FXuchar line[4096]...
false
false
false
false
false
0
_copyCommonTableExpr(const CommonTableExpr *from) { CommonTableExpr *newnode = makeNode(CommonTableExpr); COPY_STRING_FIELD(ctename); COPY_NODE_FIELD(aliascolnames); COPY_NODE_FIELD(ctequery); COPY_LOCATION_FIELD(location); COPY_SCALAR_FIELD(cterecursive); COPY_SCALAR_FIELD(cterefcount); COPY_NODE_FIELD(ctecol...
false
false
false
false
false
0
us5182d_dark_gain_config(struct iio_dev *indio_dev) { struct us5182d_data *data = iio_priv(indio_dev); int ret; ret = us5182d_update_dark_th(data, US5182D_CFG1_AGAIN_DEFAULT); if (ret < 0) return ret; ret = i2c_smbus_write_byte_data(data->client, US5182D_REG_AUTO_LDARK_GAIN, data->lower_dark_gain); ...
false
false
false
false
false
0
token_to_xml(Auth_token *token) { Ds *ds; ds = ds_init(NULL); ds_asprintf(ds, "<otp_token"); ds_asprintf(ds, " u='%s'", ENC(token->username)); ds_asprintf(ds, " d='%s'", token_mode(token->mode, TOKEN_MODE_COUNTER) ? "c" : "t"); ds_asprintf(ds, " en='%s'", token_enabled(token->mode) ? "1" : "0"); ds_...
false
false
false
false
false
0
clone() const { mail::pop3Folder *p=new mail::pop3Folder(server); if (!p) return NULL; return p; }
false
false
false
false
false
0
sync(void) { if (the_name) { delete [] the_name; } if (the_cur) { delete [] the_cur; } if (cur_rec) { delete [] cur_rec; } char nam[NC_MAX_NAME]; if (the_file && NcError::set_err( nc_inq_varname(the_file->id(), the_id, nam) ...
false
false
false
false
false
0
mx_tooltip_show (MxTooltip *tooltip) { MxTooltipPrivate *priv; ClutterActor *self = CLUTTER_ACTOR (tooltip); ClutterAnimation *animation; /* make sure we're not currently already animating (e.g. hiding) */ animation = clutter_actor_get_animation (CLUTTER_ACTOR (tooltip)); if (animation) clutter_animati...
false
false
false
false
false
0
Process(void) { while (!IsStopped()) { CLockObject lock(m_mutex); if ((m_iScheduleEepromWrite > 0 && m_iScheduleEepromWrite < GetTimeMs()) || m_condition.Wait(m_mutex, m_bWrite, 100)) { if (IsStopped()) break; m_bWrite = false; if (m_com->m_commands->WriteEEPROM()) ...
false
false
false
false
false
0
d_ctor_dtor_name (struct d_info *di) { if (di->last_name != NULL) { if (di->last_name->type == DEMANGLE_COMPONENT_NAME) di->expansion += di->last_name->u.s_name.len; else if (di->last_name->type == DEMANGLE_COMPONENT_SUB_STD) di->expansion += di->last_name->u.s_string.len; } switch (d_peek_cha...
false
false
false
false
false
0
GNUNET_SPEEDUP_start_ (const struct GNUNET_CONFIGURATION_Handle *cfg) { if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (cfg, "testing", "SPEEDUP_INTERVAL", &interval)) return GNUNET_SYSERR; if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_time (cfg, "testing", "SPEEDUP_DELTA", &delta)) return GNUNET_SY...
false
false
false
false
false
0
fiRgb2Yuv(float *R, float *G, float *B, float *Y, float *U, float *V, int dim) { for(int i = 0; i < dim; i++) { Y[i] = COEFF_YR * R[i] + COEFF_YG * G[i] + COEFF_YB * B[i]; U[i] = R[i] - Y[i]; V[i] = B[i] - Y[i]; } }
false
false
false
false
false
0
load_dir(Evas_Object *li, char *direc) { int n, i; struct dirent **eps; char buf[255], old_dir[255], buf1[255]; Elm_Object_Item *dir_list=NULL; strcpy(old_dir, direc); snprintf(buf, sizeof(buf), "%s/folder.png", intone_dir); snprintf(buf1, sizeof(buf1), "%s/generic.png", intone_dir); n = scandir (old_di...
false
false
false
false
false
0
blogic_hwreset(struct blogic_adapter *adapter, bool hard_reset) { union blogic_stat_reg statusreg; int timeout; /* FlashPoint Host Adapters are Hard Reset by the FlashPoint SCCB Manager. */ if (blogic_flashpoint_type(adapter)) { struct fpoint_info *fpinfo = &adapter->fpinfo; fpinfo->softreset = !hard_...
true
true
false
false
false
1
dht_fsync2 (xlator_t *this, call_frame_t *frame, int op_ret) { dht_local_t *local = NULL; xlator_t *subvol = NULL; uint64_t tmp_subvol = 0; int ret = -1; local = frame->local; ret = fd_ctx_get (local->fd, this, &tmp_subvol); if (!ret) ...
false
false
false
false
false
0
soap_in_wsrm__OfferType(struct soap *soap, const char *tag, struct wsrm__OfferType *a, const char *type) { size_t soap_flag_Identifier = 1; size_t soap_flag_Endpoint = 1; size_t soap_flag_Expires = 1; size_t soap_flag_IncompleteSequenceBehavior = 1; if (soap_element_begin_in(soap, tag, 0, type)) return NULL; a ...
false
false
false
false
false
0
eval_for_line(arg, errp, nextcmdp, skip) char_u *arg; int *errp; char_u **nextcmdp; int skip; { forinfo_T *fi; char_u *expr; typval_T tv; list_T *l; *errp = TRUE; /* default: there is an error */ fi = (forinfo_T *)alloc_clear(sizeof(forinfo_T)); if (fi == NULL) return NU...
false
false
false
false
false
0
print_lock_list (fd_lk_ctx_t *lk_ctx) { fd_lk_ctx_node_t *lk = NULL; gf_log ("fd-lk", GF_LOG_DEBUG, "lock list:"); list_for_each_entry (lk, &lk_ctx->lk_list, next) gf_log ("fd-lk", GF_LOG_DEBUG, "owner = %s, " "cmd = %s fl_type = %s, fs_start = %"...
false
false
false
false
false
0
Handler_LoadMGx(ccf_Context cc, int Code) { ccf_Gs save_Gn = cc->saveGn; /* (Paranoid programming ;) */ int save_S = cc->saveS; if (Code == 0x29 || Code == 0x2A || Code == 0x2B || Code == 0x2D || Code == 0x2E || Code == 0x2F) { cc->saveGn = (ccf_Gs)(Code & 3); cc->saveS = (Code & 4) != 0; }...
false
false
false
false
false
0
ves_icall_System_Reflection_Assembly_LoadPermissions (MonoReflectionAssembly *assembly, char **minimum, guint32 *minLength, char **optional, guint32 *optLength, char **refused, guint32 *refLength) { MonoBoolean result = FALSE; MonoDeclSecurityEntry entry; /* SecurityAction.RequestMinimum */ if (mono_declsec_get_a...
false
false
false
false
false
0
freeinfo(infop) INFO_T *infop; { int i, j; ITEM_T *itemp; CINFO_T *cinfop; CENT_T *centp; itemp = infop->item; for (i = 0; i < infop->items; i++) { if (itemp->cinfo != NULL) { cinfop = itemp->cinfo; centp = cinfop->cent; for (j = 0; j < cinfop->cents; j++) { free((char *)cent...
false
false
false
false
false
0
afr_sh_common_lookup (call_frame_t *frame, xlator_t *this, loc_t *loc, afr_lookup_done_cbk_t lookup_done , uuid_t gfid, int32_t flags, dict_t *xdata) { afr_local_t *local = NULL; int i = 0; int call_count = 0; afr_pri...
false
false
false
false
false
0
readwhile(strom) truc *strom; { truc *savptr; truc obj, delim; int m, n = 0; int sflg; savptr = argStkPtr; nexttok(strom,0); /* ueberspringe while */ obj = readexpr(strom,0); if(obj == parserrsym) { goto cleanup; } PARSpush(obj); n++; sflg = obligsym(whilesym,s...
false
false
false
false
false
0
unsubscribe(const BoundSlot& slot) { // try to find the slot in our collection SlotContainer::iterator curr = std::find_if(d_slots.begin(), d_slots.end(), SubComp(slot)); // erase our reference to the slot, if we had one. if (curr != d_slots.end()) ...
false
false
false
false
false
0
set_gids(void) { unsigned long gid; long len; char* start; char* ptr; int result; len = 0; while (cvm_client_fact_uint(CVM_FACT_SUPP_GROUPID, &gid) == 0) len += utoa_len(gid) + 1; /* Don't set $GIDS if no supplementary group IDs were listed */ if (len == 0) return 1; /* Reset to the start of ...
false
false
false
false
true
1
OnStartEditing (gcpOrbitalProps *dlg) { if (dlg->m_Node) xmlFree (dlg->m_Node); dlg->m_Coef = dlg->m_Orbital->GetCoef (); dlg->m_Rotation = dlg->m_Orbital->GetRotation (); dlg->m_Type = dlg->m_Orbital->GetType (); gcu::Object *obj = dlg->m_Orbital->GetGroup (); dlg->m_Node = obj->Save (gcp::pXmlDoc); }
false
false
false
false
false
0
metadata_update(void *self, vorbis_comment *vc) { im_alsa_state *s = self; char **md; thread_mutex_lock(&s->metadatalock); md = s->metadata; if(md) { while(*md) vorbis_comment_add(vc, *md++); } thread_mutex_unlock(&s->metadatalock); }
false
false
false
false
false
0
lg_GetPublicKey(LGObjectCache *obj) { NSSLOWKEYPublicKey *pubKey; NSSLOWKEYPrivateKey *privKey; if (obj->objclass != CKO_PUBLIC_KEY) { return NULL; } if (obj->objectInfo) { return (NSSLOWKEYPublicKey *)obj->objectInfo; } privKey = lg_FindKeyByPublicKey(obj->sdb, &obj->dbKey); if (priv...
false
false
false
false
false
0
setup_fbuffer(struct zoran_fh *fh, void *base, const struct zoran_format *fmt, int width, int height, int bytesperline) { struct zoran *zr = fh->zr; /* (Ronald) v4l/v4l2 guidelines */ if...
false
false
false
false
false
0
gth_uri_list_init (GthUriList *uri_list) { uri_list->priv = g_new0 (GthUriListPrivate, 1); uri_list->priv->list_store = gtk_list_store_new (URI_LIST_NUM_COLUMNS, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); g_signal_connect (uri_list->priv->list_store, "row-delet...
false
false
false
false
false
0
HPDF_List_Add (HPDF_List list, void *item) { HPDF_PTRACE((" HPDF_List_Add\n")); if (list->count >= list->block_siz) { HPDF_STATUS ret = Resize (list, list->block_siz + list->items_per_block); if (ret != HPDF_OK) { return ret; } } ...
false
false
false
false
false
0
setColorNumber(const int16 colnum) { this->colorNumber = colnum; if (this->layerInfo) this->layerInfo->setColorNumber(DXFABS(this->colorNumber)); }
false
false
false
false
false
0
xdr_krb5_boolean(XDR *xdrs, krb5_boolean *kbool) { bool_t val; switch (xdrs->x_op) { case XDR_DECODE: if (!xdr_bool(xdrs, &val)) return FALSE; *kbool = (val == FALSE) ? FALSE : TRUE; return TRUE; case XDR_ENCODE: val = *kbool ? TRUE : FALSE; return xdr_bool(xdrs, &val); cas...
false
false
false
false
false
0
resolve_uid(const char *setuid_user) { #ifndef HAVE_WINDOWS uid_t uid = 0; struct passwd *pw; if (!setuid_user) return 0; pw = getpwnam(setuid_user); if(pw) uid = pw->pw_uid; else if(atoi(setuid_user)) /* numerical? */ uid = atoi(setuid_user); else { uid = -1; } if (uid < 0) { dlog(DL...
false
false
false
false
false
0
done_func (GObject *object, GError *error, gpointer user_data) { GthFindDuplicates *self = user_data; g_source_remove (self->priv->pulse_event_id); self->priv->pulse_event_id = 0; self->priv->io_operation = FALSE; if (self->priv->closing) { gtk_widget_destroy (GET_WIDGET ("find_duplicates_dialog"))...
false
false
false
false
false
0
Scm_MakeOutputConversionPort(ScmPort *toPort, const char *toCode, const char *fromCode, int bufsiz, int ownerp) { ScmConvInfo *cinfo; ScmPortBuffer bufrec; ScmObj name; if (!SCM_OPORTP(toPort)) ...
false
false
false
true
false
1
IoMessage_rawLastBeforeEOL(IoMessage *self) { IoMessage *last = self; IoMessage *next; while (next = IoMessage_rawNext(last)) { if (IoMessage_rawIsEOL(next)) { break; } last = next; } return last; }
false
false
false
false
false
0
krb5_authdata_get_attribute(krb5_context kcontext, krb5_authdata_context context, const krb5_data *attribute, krb5_boolean *authenticated, krb5_boolean *complete, krb5_data *value,...
false
false
false
false
false
0
SetRestrictionFlag( int restriction, CONSTRAINT_RECORD *constraints, int value) { switch (restriction) { case UNKNOWN_VALUE: constraints->anyRestriction = value; break; case SYMBOL: constraints->symbolRestriction = value; break; case STRING: ...
false
false
false
false
false
0
fs_tbchain_new_block(fs_tbchain *bc) { TIME(NULL); if (!bc->ptr) { fs_error(LOG_CRIT, "attempted to get block from unmapped chain"); return 0; } if (bc->header->length == 0) { fs_error(LOG_CRIT, "length reset, this is a bug, attempting recovery"); bc->header->length = bc...
false
false
false
true
false
1
joydev_generate_startup_event(struct joydev_client *client, struct input_dev *input, struct js_event *event) { struct joydev *joydev = client->joydev; int have_event; spin_lock_irq(&client->buffer_lock); have_event = client->startup < joydev->nabs + joydev->nkey; if (have_event) { event->time = j...
false
false
false
false
false
0
xsh_parameters_clipping_tilt_create(const char* recipe_id, cpl_parameterlist* list) { /* check parameters */ XSH_ASSURE_NOT_NULL( list); /* Fill the parameter list */ check( xsh_parameters_new_double( list, recipe_id, "tilt-clip-kappa", 2.5, "Multiple of sigma in sigma clipping for evaluate til...
false
false
false
false
false
0
gfire_set_nick(gfire_data *p_gfire, const gchar *p_nick) { if(!p_gfire || !p_nick) return; purple_debug(PURPLE_DEBUG_INFO, "gfire", "Changing server nick (alias) to \"%s\"\n", p_nick); guint16 packet_len = gfire_proto_create_change_alias(p_nick); if(packet_len > 0) gfire_send(gfire_get_connection(p_gfire), packe...
false
false
false
false
false
0
gExplosion(eGrid *grid, const eCoord &pos,REAL time, gRealColor& color, gCycle * owner ) :eReferencableGameObject(grid, pos, eCoord(0,0), NULL, true), sound(explode), createTime(time), expansion(0), listID(-1), owner_(owner) { holeAccountedFor_ = false; lastTime...
false
false
false
false
false
0
rb_vm_check_redefinition_opt_method(const rb_method_entry_t *me) { st_data_t bop; if (!me->def || me->def->type == VM_METHOD_TYPE_CFUNC) { if (st_lookup(vm_opt_method_table, (st_data_t)me, &bop)) { ruby_vm_redefined_flag[bop] = 1; } } }
false
false
false
false
false
0
set_cgcsgid(char *spec, unsigned long *r) { unsigned long cp; char *ptr; if (spec != CN && (cp = strtoul(spec, &ptr, 0)) && ptr != spec && *ptr == '\0') { if (!(cp & ~0xffffL)) *r = DEFAULT_CGEN | cp; else *r = cp; return 0; } else return -1; }
false
false
false
false
false
0
Wscpy (d, s) Wchar *d; register Wchar *s; { register Wchar *p = d, ch; while (ch = *s++) { *p++ = ch; } *p = (Wchar) 0; return d; }
false
false
false
false
false
0
zxid_query_ctlpt_pdp(zxid_conf* cf, zxid_ses* ses, const char* az_cred, struct zx_e_Envelope_s* env, const char* ctlpt, const char* faultparty, struct zxid_map* pepmap) { /* Populate action from first subelement of body */ if (env->Body && env->Body->gg.kids) { zxid_add_action_from_body_child(cf, ses, env); }...
false
false
false
false
false
0
pdf_unclip(gx_device_pdf * pdev) { const int bottom = (pdev->ResourcesBeforeUsage ? 1 : 0); /* When ResourcesBeforeUsage != 0, one sbstack element appears from the page contents stream. */ if (pdev->sbstack_depth <= bottom) { int code = pdf_open_page(pdev, PDF_IN_STREAM); if (code <...
false
false
false
false
false
0
ajListIterRemove(AjIList iter) { AjPListNode node = NULL; /* ajDebug("ajListIterRemove\n");*/ if(!iter->Modify) { ajDie("Attempt to modify read-only iterator with ajListIterRemove\n"); return; } node = iter->Here; if(!iter->Back) { if(!node->Prev) ...
false
false
false
true
false
1
ReportAsObjectBase(vtkInformationKey* key, vtkGarbageCollector* collector) { if(key) { typedef vtkInformationInternals::MapType MapType; MapType::iterator i = this->Internal->Map.find(key); if(i != this->Internal->Map.end()) { vtkGarbageCollectorRepo...
false
false
false
false
false
0
bb_to_key (basic_block bb) { edge e; edge_iterator ei; int priority = 0; /* Do not start in probably never executed blocks. */ if (BB_PARTITION (bb) == BB_COLD_PARTITION || probably_never_executed_bb_p (bb)) return BB_FREQ_MAX; /* Prefer blocks whose predecessor is an end of some trace or...
false
false
false
false
false
0
samsung_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { int ret = 0; if (USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE == hdev->product) ret = samsung_kbd_mouse_input_mapping(hdev, hi, field, usage, bit, max); return ...
false
false
false
false
false
0
send_customlist(request_rec *r, const mu_pack *const pack) { register unsigned short nb = pack->filenb; if (!pack->fhead) return; ap_rputs("<!-- begin custom -->\n" "<h2>", r); ap_rprintf(r, _("Custom Playlist (%d)"), nb); ap_rputs("</h2>\n\n", r); ap_rvputs(r, " <form method=\"post\" action=\"", ap_escape...
false
false
false
false
false
0
ginFillScanKey(GinScanOpaque so, OffsetNumber attnum, StrategyNumber strategy, int32 searchMode, Datum query, uint32 nQueryValues, Datum *queryValues, GinNullCategory *queryCategories, bool *partial_matches, Pointer *extra_data) { GinScanKey key = &(so->keys[so->nkeys++]); GinState *ginstate...
false
false
false
false
false
0
pln_get_addr (GnmParsePos const *pp, guint8 const *ch) { guint16 r = GSF_LE_GET_GUINT16 (ch); guint16 c = GSF_LE_GET_GUINT16 (ch+2); GnmCellRef ref; GnmConventionsOut out; ref.sheet = NULL; ref.col_relative = ref.row_relative = FALSE; ref.col = (c & 0x3fff); ref.row = (r & 0x3fff); switch (c & 0xc000) { cas...
false
false
false
false
false
0
nssCKFWObject_GetAttributeCount ( NSSCKFWObject *fwObject, CK_RV *pError ) { CK_ULONG rv; #ifdef NSSDEBUG if (!pError) { return (CK_ULONG)0; } *pError = nssCKFWObject_verifyPointer(fwObject); if( CKR_OK != *pError ) { return (CK_ULONG)0; } #endif /* NSSDEBUG */ if (!fwObject->mdObject->GetA...
false
false
false
false
false
0
isl29018_match_acpi_device(struct device *dev, int *data) { const struct acpi_device_id *id; id = acpi_match_device(dev->driver->acpi_match_table, dev); if (!id) return NULL; *data = (int) id->driver_data; return dev_name(dev); }
false
false
false
false
false
0
OnEditCommentSelected(cb_unused wxCommandEvent& event) { cbEditor* ed = Manager::Get()->GetEditorManager()->GetBuiltinActiveEditor(); if (ed) { cbStyledTextCtrl* stc = ed->GetControl(); CommentToken comment = Manager::Get()->GetEditorManager()->GetColourSet()->GetCommentToken( ed...
false
false
false
false
false
0
vim_strbyte(string, c) char_u *string; int c; { char_u *p = string; while (*p != NUL) { if (*p == c) return p; ++p; } return NULL; }
false
false
false
false
false
0
lpc18xx_pconf_set_pin(struct pinctrl_dev *pctldev, enum pin_config_param param, u16 param_val, u32 *reg, struct lpc18xx_pin_caps *pin_cap) { switch (param) { case PIN_CONFIG_BIAS_DISABLE: *reg &= ~LPC18XX_SCU_PIN_EPD; *reg |= LPC18XX_SCU_PIN_EPUN; break; case PIN_CONFIG_BIAS_PULL_UP: *reg &= ...
false
false
false
false
false
0
mono_thread_detach_internal (MonoInternalThread *thread) { g_return_if_fail (thread != NULL); THREAD_DEBUG (g_message ("%s: mono_thread_detach for %p (%"G_GSIZE_FORMAT")", __func__, thread, (gsize)thread->tid)); thread_cleanup (thread); SET_CURRENT_OBJECT (NULL); mono_domain_unset (); /* Don't need to CloseHa...
false
false
false
false
false
0
finishArray() { checkTs(_ts); --_level; _lastLevel = _level; if (_beautify) { *_ts << L'\n'; indent(); } *_ts << L']'; }
false
false
false
false
false
0
clear_pool(void) { int i; STRING *str, *next; for (i = 0; i < POOL_SIZE; i++) { #ifdef DEBUG_ME fprintf(stderr, "clear_pool: clear pool #%d\n", i); #endif str = _pool[i]; while (str) { next = *((STRING **)str); _my_free(str); str = next; } } }
false
false
false
false
false
0
docman_plugin_set_tab_pos (DocmanPlugin *ep) { if (g_settings_get_boolean (ep->settings, EDITOR_SHOW_DROP_DOWN)) { anjuta_docman_set_open_documents_mode (ANJUTA_DOCMAN (ep->docman), ANJUTA_DOCMAN_OPEN_DOCUMENTS_MODE_COMBO); } else if (g_settings_get_boolean (ep->settings, EDITOR_TABS_HIDE)) { an...
false
false
false
false
false
0
PrintSelf(ostream& os, vtkIndent indent) { this->Superclass::PrintSelf(os, indent); os << indent << "KdTree: " << (this->KdTree ? "" : "(null)") << endl; if (this->KdTree) { this->KdTree->PrintSelf(os, indent.GetNextIndent()); } os << indent << "SelectionFieldName: " << (this->SelectionFieldName...
false
false
false
false
false
0
unset_highlight (GitgCommitView *view) { if (!view->priv->highlight_mark) { return; } GtkTextBuffer *buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view->priv->changes_view)); GtkTextIter start; GtkTextIter end; gtk_text_buffer_get_iter_at_mark (buffer, &start, view->priv->highlight_mark); end = start; ...
false
false
false
false
false
0
check_http_response(char * line, char * resp) { char http10[16]; char http11[16]; snprintf(http10, 15, "HTTP/1.0 %s", resp); snprintf(http11, 15, "HTTP/1.1 %s", resp); return (strstr(line, http10) != NULL) || (strstr(line, http11) != NULL); }
false
false
false
false
false
0
doopt1(BW *bw, unsigned char *s, int *xx, int *notify) { int ret = 0; int x = *xx; int v; joe_free(xx); switch (glopts[x].type) { case 1: v = calc(bw, s); if (merr) { msgnw(bw->parent, merr); ret = -1; } else if (v >= glopts[x].low && v <= glopts[x].high) *(int *)glopts[x].set = v; else { msg...
true
true
false
false
false
1
AddError(const wxString& err) { m_pText->AppendText(err + _T('\n')); }
false
false
false
false
false
0
acpi_memory_remove_memory(struct acpi_memory_device *mem_device) { acpi_handle handle = mem_device->device->handle; struct acpi_memory_info *info, *n; int nid = acpi_get_node(handle); list_for_each_entry_safe(info, n, &mem_device->res_list, list) { if (!info->enabled) continue; if (nid == NUMA_NO_NODE) ...
false
false
false
false
false
0
commit_if_needed(struct cache *cache) { int r = 0; if ((cache->commit_requested || need_commit_due_to_time(cache)) && dm_cache_changed_this_transaction(cache->cmd)) { r = commit(cache, false); cache->commit_requested = false; cache->last_commit_jiffies = jiffies; } return r; }
false
false
false
false
false
0
xaccAccountSetName (Account *acc, const char *str) { AccountPrivate *priv; /* errors */ g_return_if_fail(GNC_IS_ACCOUNT(acc)); g_return_if_fail(str); /* optimizations */ priv = GET_PRIVATE(acc); if (g_strcmp0(str, priv->accountName) == 0) return; xaccAccountBeginEdit(acc); ...
false
false
false
false
false
0
paint(RenderObject::PaintInfo& i, int tx, int ty) { if (object()->isBR() || object()->style()->visibility() != VISIBLE || m_truncation == cFullTruncation || i.phase == PaintActionOutline) return; if (i.phase == PaintActionSelection && object()->selectionState() == RenderObject::SelectionNone) ...
false
false
false
false
false
0
ProcessCaptureEvent(GameObject* go, uint32 towerId, Team team, uint32 newWorldState, uint32 message) { if (team == ALLIANCE) { // update counter ++m_towersAlliance; UpdateWorldState(WORLD_STATE_EY_TOWER_COUNT_ALLIANCE, m_towersAlliance); SendMessageToAll(message, CHAT_MSG_BG_SYS...
false
false
false
false
false
0
ini_get_long_config_array(struct value_obj *vo, int *size, int *error) { const char *str; char *endptr; long val = 0; long *array; uint32_t count = 0; int err; uint32_t dlen; TRACE_FLOW_ENTRY(); /* Do we have the vo ? */ if (vo == NULL) { TRACE_ERROR_NUMBER("Invalid val...
false
false
false
false
false
0
create_rwlock(PFS_rwlock_class *klass, const void *identity) { PFS_scan scan; uint random= randomized_index(identity, rwlock_max); for (scan.init(random, rwlock_max); scan.has_pass(); scan.next_pass()) { PFS_rwlock *pfs= rwlock_array + scan.first(); PFS_rwlock *pfs_last= rwlock_array + sc...
false
false
false
false
false
0
gt_golomb_new(unsigned long median) { GtGolomb *golomb; gt_assert(median > 0); golomb = gt_malloc(sizeof (*golomb)); golomb->median = median; golomb->len = (unsigned long) ceil(GT_LOG2((double) golomb->median)); golomb->two_pow_len = GT_POW2(golomb->len); return golomb; }
false
false
false
false
false
0
ComputeSpacing( vtkRectilinearGrid *data, int i, int j, int k, int extent[6], double spacing[6]) { vtkDataArray *xCoords = data->GetXCoordinates(); vtkDataArray *yCoords = data->GetYCoordinates(); vtkDataArray *zCoords = data->GetZCoordinates(); spacing[0] = 0; spacing[1] = 0; spacing[2] = 0; spaci...
false
false
false
false
false
0
unity_webapps_context_remove_application_actions (UnityWebappsContext *context) { g_return_if_fail (UNITY_WEBAPPS_IS_CONTEXT (context)); if (context->priv->remote_ready == FALSE) return; unity_webapps_gen_context_call_remove_application_actions (context->priv->context_proxy, context->pri...
false
false
false
false
false
0
IQM_DrawCaster ( void ) { float frame, time; vec3_t sv_angles; if(currententity->team) //don't draw flag models, handled by sprites return; if ( currententity->flags & RF_WEAPONMODEL ) //don't draw weapon model shadow casters return; if ( currententity->flags & ( RF_SHELL_HALF_DAM | RF_SHELL_GR...
false
false
false
false
false
0
drawBackground(QPainter* painter, const QRectF&) { m_themeManager->svgRenderer()->render(painter, m_themeManager->elementId(background), m_rectBackground); }
false
false
false
false
false
0
delautgrapharc( Graph, Arc ) autgraph *Graph; autarc_list *Arc; { chain_list **PrevChain; chain_list *ScanChain; autnode_list *Node; Node = Arc->NODE_FROM; PrevChain = &Node->ARC_FROM; for ( ScanChain = Node->ARC_FROM; ScanChain != (chain_list *)0; ScanChain = ScanChain->NEX...
false
false
false
false
false
0
gui_editor_toggle_mark_at_line (GUIEditor * self, gint line_no) { g_assert (self); GtkTextIter line_start, line_end; GSList *marker_list; GtkSourceMark *marker; /* get line bounds */ gtk_text_buffer_get_iter_at_line (GTK_TEXT_BUFFER (self->buffer), &line_start, line_no); line_end = line_start; gtk_tex...
false
false
false
false
false
0
wb_setattr (call_frame_t *frame, xlator_t *this, loc_t *loc, struct iatt *stbuf, int32_t valid) { wb_file_t *file = NULL; fd_t *iter_fd = NULL; wb_local_t *local = NULL; uint64_t tmp_file = 0; call_stub_t *stub = NULL; wb_request...
false
false
false
true
false
1
nfsd4_return_file_layouts(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutreturn *lrp) { struct nfs4_layout_stateid *ls; struct nfs4_layout *lp, *n; LIST_HEAD(reaplist); __be32 nfserr; int found = 0; nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, f...
false
false
false
false
false
0
gst_debug_reset_threshold (gpointer category, gpointer unused) { GstDebugCategory *cat = (GstDebugCategory *) category; GSList *walk; g_static_mutex_lock (&__level_name_mutex); walk = __level_name; while (walk) { LevelNameEntry *entry = walk->data; walk = g_slist_next (walk); if (g_pattern_match...
false
false
false
false
false
0
drawBlips(int blip_type, int bright, int distort) { blip *b = NULL; blip *blip_head = NULL; int x, y; Assert((blip_type >= 0) && (blip_type < MAX_BLIP_TYPES)); // Need to set font. gr_set_font(FONT1); // get the appropriate blip list if (bright) blip_head = &Blip_bright_list[blip_type]; else blip_head...
false
false
false
false
false
0
typelib(MEM_ROOT *mem_root, List<String> &strings) { TYPELIB *result= (TYPELIB*) alloc_root(mem_root, sizeof(TYPELIB)); if (!result) return 0; result->count=strings.elements; result->name=""; uint nbytes= (sizeof(char*) + sizeof(uint)) * (result->count + 1); if (!(result->type_names= (const char**) allo...
false
false
false
false
false
0
print_bfs_bug(int ret) { if (!debug_locks_off_graph_unlock()) return 0; /* * Breadth-first-search failed, graph got corrupted? */ WARN(1, "lockdep bfs error:%d\n", ret); return 0; }
false
false
false
false
false
0