зеркало из https://github.com/mozilla/pjs.git
Uninitialized variable compiler warnings on Linux
This commit is contained in:
Родитель
c3f350280d
Коммит
41da4b0013
|
@ -2908,7 +2908,7 @@ lo_ImageObserver(XP_Observable observable, XP_ObservableMsg message,
|
|||
{
|
||||
IL_MessageData *data = (IL_MessageData*)message_data;
|
||||
lo_ImageObsClosure *image_obs_closure = (lo_ImageObsClosure *)closure;
|
||||
MWContext *context;
|
||||
MWContext *context=NULL;
|
||||
LO_ImageStruct *lo_image;
|
||||
#ifdef MOCHA
|
||||
LM_ImageEvent mocha_event;
|
||||
|
@ -3072,7 +3072,7 @@ MODULE_PRIVATE int PR_CALLBACK lo_AutoloadPrefChangedFunc(const char *pref,
|
|||
MODULE_PRIVATE int PR_CALLBACK lo_AutoloadPrefChangedFunc(const char *pref,
|
||||
void *data)
|
||||
{
|
||||
int status;
|
||||
int status=0;
|
||||
|
||||
if (!XP_STRCASECMP(pref,"general.always_load_images"))
|
||||
status = PREF_GetBoolPref("general.always_load_images",
|
||||
|
@ -3112,7 +3112,7 @@ void lo_GetImage(MWContext *context, IL_GroupContext *img_cx,
|
|||
NET_ReloadMethod reload_method;
|
||||
IL_NetContext *net_cx = NULL;
|
||||
IL_IRGB *trans_pixel;
|
||||
char *image_url, *lowres_image_url, *url_to_fetch;
|
||||
char *image_url, *lowres_image_url=NULL, *url_to_fetch;
|
||||
IL_ImageReq *dummy_ireq;
|
||||
|
||||
/* Safety checks. */
|
||||
|
|
|
@ -974,7 +974,7 @@ lo_calc_push_right_for_justify(lo_DocState *state, int32 *remainder)
|
|||
int32 count = -1; /* start at -1 */
|
||||
int32 push_right;
|
||||
LO_Element *tptr;
|
||||
LO_Element *last;
|
||||
LO_Element *last=NULL;
|
||||
|
||||
tptr = state->line_list;
|
||||
|
||||
|
@ -2145,7 +2145,7 @@ lo_BlockTag(MWContext *context, lo_DocState *state, PA_Tag *tag)
|
|||
int32 doc_id;
|
||||
lo_TopState *top_state;
|
||||
lo_DocState *new_state;
|
||||
char *save_base;
|
||||
char *save_base=NULL;
|
||||
|
||||
/*
|
||||
* All blocked tags should be at the top level of state
|
||||
|
@ -6564,7 +6564,7 @@ LO_DiscardDocument(MWContext *context)
|
|||
LO_Element *recycle_list;
|
||||
int32 cnt;
|
||||
#ifdef MEMORY_ARENAS
|
||||
lo_arena *old_arena;
|
||||
lo_arena *old_arena=NULL;
|
||||
#endif /* MEMORY_ARENAS */
|
||||
|
||||
/*
|
||||
|
|
|
@ -5346,11 +5346,11 @@ XP_TRACE(("lo_LayoutTag(%d)\n", tag->type));
|
|||
LO_TextAttr *attr;
|
||||
PA_Block buff;
|
||||
intn new_size;
|
||||
uint16 new_point_size;
|
||||
uint16 new_font_weight;
|
||||
uint16 new_point_size=0;
|
||||
uint16 new_font_weight=0;
|
||||
char *size_str;
|
||||
char *str;
|
||||
char *new_face;
|
||||
char *new_face=NULL;
|
||||
Bool has_face;
|
||||
Bool has_size;
|
||||
Bool has_point_size;
|
||||
|
@ -6828,7 +6828,7 @@ XP_TRACE(("lo_LayoutTag(%d)\n", tag->type));
|
|||
}
|
||||
else if (!strcasecomp((char *)buff, "prefetch"))
|
||||
{
|
||||
char *prefetchURL;
|
||||
char *prefetchURL=NULL;
|
||||
char *str;
|
||||
PA_Block buff2 = lo_FetchParamValue(context, tag, PARAM_SRC);
|
||||
|
||||
|
@ -6852,7 +6852,7 @@ XP_TRACE(("lo_LayoutTag(%d)\n", tag->type));
|
|||
|
||||
else if (!strcasecomp((char *)buff, "privacypolicy"))
|
||||
{
|
||||
char *policyURL;
|
||||
char *policyURL=NULL;
|
||||
char *str;
|
||||
PA_Block buff2 = lo_FetchParamValue(context, tag, PARAM_SRC);
|
||||
History_entry *hist;
|
||||
|
|
|
@ -7252,7 +7252,7 @@ lo_GetNextTextPosition ( LO_TextBlock * block, uint32 * outWordLength, uint32 *
|
|||
uint32 lineLength;
|
||||
uint32 nibbleCount;
|
||||
uint32 dataNibbles;
|
||||
int32 wordLength;
|
||||
int32 wordLength=0;
|
||||
uint32 * breakTable;
|
||||
uint8 * endTextRun;
|
||||
|
||||
|
@ -7877,7 +7877,7 @@ void lo_BreakOldTextBlockElement(MWContext *context, lo_DocState *state)
|
|||
int32 old_baseline;
|
||||
int32 old_line_height;
|
||||
int32 adjust;
|
||||
int32 baseline_inc;
|
||||
int32 baseline_inc=0;
|
||||
LO_Element * tptr;
|
||||
LO_Element * eptr;
|
||||
LO_Element * line_ptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче