Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1
libchewing
bugzilla-155270-libchewing-init-chewing-correct...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bugzilla-155270-libchewing-init-chewing-correctly.patch of Package libchewing
diff -ru libchewing-0.3.0.orig/src/chewingio.c libchewing-0.3.0/src/chewingio.c --- libchewing-0.3.0.orig/src/chewingio.c 2006-05-15 08:49:43.000000000 +0200 +++ libchewing-0.3.0/src/chewingio.c 2006-07-13 16:30:16.000000000 +0200 @@ -155,6 +155,12 @@ CHEWING_API int chewing_Reset( ChewingContext *ctx ) { ChewingData *pgdata = ctx->data; + ChewingConfigData old_config; + + /* Backup old config and restore it after clearing pgdata structure. */ + old_config = pgdata->config; + memset( pgdata, 0, sizeof( ChewingData ) ); + pgdata->config = old_config; /* zuinData */ memset( &( pgdata->zuinData ), 0, sizeof( ZuinData ) );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor