mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Uninitialized variables
This commit is contained in:
parent
f85c648277
commit
87892281ff
@ -1346,7 +1346,7 @@ GlobalWindowImpl::Open(JSContext *cx,
|
||||
}
|
||||
|
||||
nsAutoString mURL, mEmpty;
|
||||
nsIURL* mDocURL;
|
||||
nsIURL* mDocURL = 0;
|
||||
nsIDocument* mDoc;
|
||||
|
||||
mURL.SetString(JS_GetStringChars(mJSStrURL));
|
||||
|
@ -1306,7 +1306,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
|
||||
{
|
||||
enum { other, inName, inValue } state = inName;
|
||||
int nAtts = 0;
|
||||
int open;
|
||||
int open = 0;
|
||||
|
||||
for (ptr += MINBPC;; ptr += MINBPC) {
|
||||
switch (BYTE_TYPE(enc, ptr)) {
|
||||
|
@ -246,7 +246,7 @@ char * nsFontMetricsGTK::PickAppropriateSize(char **names, XFontStruct *fonts, i
|
||||
// XXX FIX ME
|
||||
PRInt32 desiredpix = NSToIntRound(app2dev * desired);
|
||||
XFontStruct *curfont;
|
||||
PRInt32 closestmin = -1, minidx;
|
||||
PRInt32 closestmin = -1, minidx = 0;
|
||||
|
||||
//first try an exact or closest smaller match...
|
||||
|
||||
|
@ -231,7 +231,7 @@ output_row(gif_struct *gs)
|
||||
*/
|
||||
if (gs->progressive_display && gs->interlaced && (gs->ipass < 4))
|
||||
{
|
||||
uint row_dup, row_shift;
|
||||
uint row_dup=0, row_shift=0;
|
||||
|
||||
switch (gs->ipass) {
|
||||
case 1:
|
||||
@ -668,7 +668,7 @@ gif_delay_time_callback(void *closure)
|
||||
static int
|
||||
gif_clear_screen(gif_struct *gs)
|
||||
{
|
||||
uint erase_width, erase_height, erase_x_offset, erase_y_offset;
|
||||
uint erase_width=0, erase_height=0, erase_x_offset=0, erase_y_offset=0;
|
||||
PRBool erase;
|
||||
il_container *ic = gs->ic;
|
||||
|
||||
|
@ -691,7 +691,7 @@ il_emit_row(
|
||||
IL_Pixmap *mask = ic->mask;
|
||||
NI_PixmapHeader *src_header = ic->src_header;
|
||||
NI_PixmapHeader *img_header = &image->header;
|
||||
NI_PixmapHeader *mask_header;
|
||||
NI_PixmapHeader *mask_header = 0;
|
||||
NI_ColorSpace *src_color_space = src_header->color_space;
|
||||
NI_ColorSpace *img_color_space = img_header->color_space;
|
||||
uint8 XP_HUGE *out;
|
||||
|
@ -524,7 +524,7 @@ void free_stub_context(MWContext *window_id)
|
||||
extern "C" MWContext * XP_FindContextOfType (MWContext * context,
|
||||
MWContextType type)
|
||||
{
|
||||
MWContext *window_id;
|
||||
MWContext *window_id = 0;
|
||||
|
||||
/*
|
||||
* Return the context that was passed in if it is the correct type
|
||||
|
@ -1306,7 +1306,7 @@ int PREFIX(getAtts)(const ENCODING *enc, const char *ptr,
|
||||
{
|
||||
enum { other, inName, inValue } state = inName;
|
||||
int nAtts = 0;
|
||||
int open;
|
||||
int open = 0;
|
||||
|
||||
for (ptr += MINBPC;; ptr += MINBPC) {
|
||||
switch (BYTE_TYPE(enc, ptr)) {
|
||||
|
Loading…
Reference in New Issue
Block a user