Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e6e76ced
Commit
e6e76ced
authored
Feb 27, 2017
by
Leigh B Stoller
Browse files
Minor fix to prevent uninitialized variable warning.
parent
2beb1824
Changes
1
Hide whitespace changes
Inline
Side-by-side
protogeni/lib/GeniCluster.pm.in
View file @
e6e76ced
...
...
@@ -574,6 +574,16 @@ sub SliceMaxExtension($)
return
GeniResponse
->
Create
(
GENIRESPONSE_SEARCHFAILED
)
if
(
!defined($slice));
#
#
Make
sure
the
experiment
exists
before
calling
into
the
Reservation
#
library
,
it
does
not
like
it
when
the
slice
is
really
new
and
not
#
fully
setup
yet
.
#
my
$
experiment
=
$
slice
->
GetExperiment
();
if
(
!defined($experiment)) {
return
GeniResponse
->
Create
(
GENIRESPONSE_BUSY
);
}
if
(
Reservation
->
MaxSliceExtension
($
slice
,
\$
max
,
\$
reserror
))
{
Reservation
->
FlushAll
();
return
GeniResponse
->
Create
(
GENIRESPONSE_REFUSED
,
undef
,
$
reserror
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment