Uninitialized variables
This commit is contained in:
Родитель
4147924a67
Коммит
fdf88ceddf
|
@ -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...
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -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)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче