1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

change_hook_css: Don't use the ses parameter.

It might be NULL.
This commit is contained in:
Kalle Olavi Niemitalo 2007-01-27 22:33:02 +02:00 committed by Kalle Olavi Niemitalo
parent 233c59b9c2
commit 4adcae682f

View File

@ -19,6 +19,7 @@
#include "main/module.h"
#include "network/connection.h"
#include "protocol/uri.h"
#include "session/session.h"
#include "util/error.h"
#include "util/memory.h"
#include "viewer/text/draw.h"
@ -127,7 +128,10 @@ change_hook_css(struct session *ses, struct option *current, struct option *chan
import_default_css();
}
draw_formatted(ses, 1);
/* Instead of using the value of the @ses parameter, iterate
* through the @sessions list. The parameter may be NULL and
* anyway we don't support session-specific options yet. */
foreach (ses, sessions) draw_formatted(ses, 1);
return 0;
}