mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +00:00
Fix gcc warning, prevlevel may be used uninitialized
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
c93e9a30cd
commit
1fb78742c7
1 file changed
+2
-1
+2
-1
@@ -108,8 +108,9 @@ static int do_runlevel(char *arg)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (!rq.runlevel) {
|
if (!rq.runlevel) {
|
||||||
|
int prevlevel = 0;
|
||||||
|
int runlevel;
|
||||||
char prev;
|
char prev;
|
||||||
int runlevel, prevlevel;
|
|
||||||
|
|
||||||
runlevel = runlevel_get(&prevlevel);
|
runlevel = runlevel_get(&prevlevel);
|
||||||
if (255 == runlevel) {
|
if (255 == runlevel) {
|
||||||
|
|||||||
Reference in new issue
Block a user